Bånder

Image extends BaseModel
in package
implements DirectStreamableFile uses HasFactory, HasNanoPublicId

Attributes
#[ObservedBy]
\App\Observers\ImageObserver::class

Table of Contents

Interfaces

DirectStreamableFile

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

formatForException()

public formatForException() : string
Return values
string

getMimeType()

Get the mime type of the file

public getMimeType() : string
Return values
string

getPath()

Get the path of the file

public getPath() : string
Return values
string

getRouteKeyName()

public getRouteKeyName() : string
Return values
string

getSize()

Get the size of the file in bytes

public getSize() : int
Return values
int

imageable()

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> = []

        
On this page

Search results