Image
extends BaseModel
in package
implements
DirectStreamableFile
uses
HasFactory, HasNanoPublicId
Attributes
- #[ObservedBy]
- \App\Observers\ImageObserver::class
Table of Contents
Interfaces
Properties
- $dateFormat : mixed
- $fillable : mixed
Methods
- bootHasNanoPublicId() : mixed
- formatForException() : string
- getMimeType() : string
- Get the mime type of the file
- getPath() : string
- Get the path of the file
- getRouteKeyName() : string
- getSize() : int
- Get the size of the file in bytes
- imageable() : mixed
- newEloquentBuilder() : mixed
- update() : mixed
Properties
$dateFormat
protected
mixed
$dateFormat
= 'Y-m-d H:i:sO'
$fillable
protected
mixed
$fillable
= ['public_id', 'path', 'extension', 'size', 'mime_type', 'width', 'height']
Methods
bootHasNanoPublicId()
public
static bootHasNanoPublicId() : mixed
formatForException()
public
formatForException() : string
Return values
stringgetMimeType()
Get the mime type of the file
public
getMimeType() : string
Return values
stringgetPath()
Get the path of the file
public
getPath() : string
Return values
stringgetRouteKeyName()
public
getRouteKeyName() : string
Return values
stringgetSize()
Get the size of the file in bytes
public
getSize() : int
Return values
intimageable()
public
imageable() : mixed
newEloquentBuilder()
public
newEloquentBuilder(mixed $query) : mixed
Parameters
- $query : mixed
update()
public
update([array<string|int, mixed> $attributes = [] ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $attributes : array<string|int, mixed> = []
- $options : array<string|int, mixed> = []