ImageResponse
class ImageResponse implements Stringable, Countable, Htmlable
Traits
Properties
| Response|null | $raw | The raw HTTP response, if available for the provider. |
from HasRawResponse |
Methods
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
Get the first image in the response.
Store the image on a filesystem disk.
Store the image on a filesystem disk with public visibility.
Store the image on a filesystem disk with public visibility.
Store the image on a filesystem disk.
Get an tag for the image.
Get the number of images that were generated.
Get the raw string content of the image.
Details
in
HasRawResponse at line 19
HasRawResponse
withRawResponse(Response|null $response)
Set the raw HTTP response.
in
HasRawResponse at line 29
array
__serialize()
Prepare the instance for serialization, discarding the unserializable raw HTTP response.
at line 27
__construct(Collection $images, ImageUsage $usage, Meta $meta)
Create an image response.
at line 37
GeneratedImage
firstImage()
Get the first image in the response.
at line 49
string|false
store(string $path = '', UnitEnum|string|null $disk = null, array $options = [])
Store the image on a filesystem disk.
at line 57
string|false
storePublicly(string $path = '', UnitEnum|string|null $disk = null, array $options = [])
Store the image on a filesystem disk with public visibility.
at line 65
string|false
storePubliclyAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])
Store the image on a filesystem disk with public visibility.
at line 73
string|false
storeAs(string $path, string|null $name = null, UnitEnum|string|null $disk = null, array $options = [])
Store the image on a filesystem disk.
at line 81
string
toHtml(string $alt = '')
Get an tag for the image.
at line 96
int
count()
Get the number of images that were generated.
at line 104
string
__toString()
Get the raw string content of the image.