VolumeFile
abstract class VolumeFile extends Model implements File
Traits
Properties
| int | $id | ||
| int | $volume_id | ||
| string | $filename | ||
| string | $uuid |
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.
Get the file URL.
The volume this video belongs to.
Set the metadata attribute.
Get the metadata attribute.
Set the width attribute.
Get the width attribute.
Set the height attribute.
Get the height attribute.
Set the size attribute.
Get the size attribute.
Get the mimeType attribute.
Set the mimeType attribute.
URL to the thumbnail of this file.
The labels, this volume file got attached by the users.
The annotations that belong to this file.
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.
at line 28
string
getUrlAttribute()
Adds the url attribute to the model. The url is the absolute path
to the original file.
at line 36
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]://".
at line 46
VolumeFile>
volume()
The volume this video belongs to.
at line 54
setMetadataAttribute(array|null $value)
Set the metadata attribute.
at line 62
array|null
getMetadataAttribute()
Get the metadata attribute.
at line 72
setWidthAttribute(int $value)
Set the width attribute.
at line 82
int|null
getWidthAttribute()
Get the width attribute.
at line 92
setHeightAttribute(int $value)
Set the height attribute.
at line 102
int|null
getHeightAttribute()
Get the height attribute.
at line 112
setSizeAttribute(int $value)
Set the size attribute.
at line 122
int|null
getSizeAttribute()
Get the size attribute.
at line 132
string
getMimeTypeAttribute()
Get the mimeType attribute.
at line 142
setMimeTypeAttribute(string $value)
Set the mimeType attribute.
at line 152
abstract string
getThumbnailUrlAttribute()
URL to the thumbnail of this file.
at line 159
abstract VolumeFileLabel, $this>
labels()
The labels, this volume file got attached by the users.
at line 166
abstract Annotation, $this>
annotations()
The annotations that belong to this file.