Image
class Image extends VolumeFile
This model stores information on an image file in the file system.
Traits
Constants
MIMES |
Allowed image MIME types. |
Properties
bool | $timestamps | Don't maintain timestamps for this model. |
from VolumeFile |
$hidden | The attributes hidden in the model's JSON form. |
||
protected array | $casts | The attributes that should be casted to native types. |
Methods
Set a dynamic JSON attribute.
Get a dynamic JSON attribute.
Adds the url
attribute to the model. The url is the absolute path
to the original file.
URL to the thumbnail of this image.
The labels, this image got attached by the users.
The annotations on this image.
Get the original image as download response.
Set the tilingInProgress attribute.
Get the tilingInProgress attribute.
Details
in
HasJsonAttributes at line 16
protected
setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')
Set a dynamic JSON attribute.
in
HasJsonAttributes at line 38
protected mixed
getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')
Get a dynamic JSON attribute.
in
VolumeFile at line 27
string
getUrlAttribute()
Adds the url
attribute to the model. The url is the absolute path
to the original file.
in
VolumeFile at line 35
string
getUrl()
Get the file URL.
This may be a remote URL starting with "http://" or "https://", or a storage disk path starting with "[disk-name]://".
in
VolumeFile at line 45
BelongsTo
volume()
The volume this video belongs to.
in
VolumeFile at line 55
setMetadataAttribute(array $value)
Set the metadata attribute.
in
VolumeFile at line 65
array
getMetadataAttribute()
Get the metadata attribute.
in
VolumeFile at line 75
setWidthAttribute(int $value)
Set the width attribute.
in
VolumeFile at line 85
int|null
getWidthAttribute()
Get the width attribute.
in
VolumeFile at line 95
setHeightAttribute(int $value)
Set the height attribute.
in
VolumeFile at line 105
int|null
getHeightAttribute()
Get the height attribute.
in
VolumeFile at line 115
setSizeAttribute(int $value)
Set the size attribute.
in
VolumeFile at line 125
int|null
getSizeAttribute()
Get the size attribute.
in
VolumeFile at line 135
string
getMimeTypeAttribute()
Get the mimeType attribute.
in
VolumeFile at line 145
setMimeTypeAttribute(string $value)
Set the mimeType attribute.
at line 149
string
getThumbnailUrlAttribute()
URL to the thumbnail of this image.
at line 65
HasMany
labels()
The labels, this image got attached by the users.
at line 55
HasMany
annotations()
The annotations on this image.
at line 75
Response
getFile()
Get the original image as download response.
at line 129
setTilingInProgressAttribute(bool $value)
Set the tilingInProgress attribute.
at line 139
bool|null
getTilingInProgressAttribute()
Get the tilingInProgress attribute.