class StorageRequest extends Model

Traits

HasFactory

Properties

protected array $casts

The attributes that should be cast.

protected array $fillable

The attributes that are mass assignable.

protected array $appends

The accessors to append to the model's array form.

Methods

static void
booted()

The "booted" method of the model.

BelongsTo
user()

The user who created this storage request.

HasMany
files()

The files belonging to this storage request.

string
getCreatedAtForHumansAttribute()

Get the created_at_for_humans attribute

string
getExpiresAtForHumansAttribute()

Get the expires_at_for_humans attribute

int
getFilesCountAttribute()

Get the files_count attribute

int
getSizeAttribute()

Get the size attribute

string
getPendingPath(string|null $value = null)

Get the path to the directory or file of this request in the pending storage disk.

string
getStoragePath(string|null $value = null)

Get the path to the directory or file of this request in the storage disk.

static Factory
newFactory()

Create a new factory instance for the model.

Details

at line 55
static protected void booted()

The "booted" method of the model.

Return Value

void

at line 73
BelongsTo user()

The user who created this storage request.

Return Value

BelongsTo

at line 83
HasMany files()

The files belonging to this storage request.

Return Value

HasMany

at line 93
string getCreatedAtForHumansAttribute()

Get the created_at_for_humans attribute

Return Value

string

at line 103
string getExpiresAtForHumansAttribute()

Get the expires_at_for_humans attribute

Return Value

string

at line 113
int getFilesCountAttribute()

Get the files_count attribute

Return Value

int

at line 123
int getSizeAttribute()

Get the size attribute

Return Value

int

at line 135
string getPendingPath(string|null $value = null)

Get the path to the directory or file of this request in the pending storage disk.

Parameters

string|null $value

Return Value

string

at line 153
string getStoragePath(string|null $value = null)

Get the path to the directory or file of this request in the storage disk.

Parameters

string|null $value

Return Value

string

at line 169
static protected Factory newFactory()

Create a new factory instance for the model.

Return Value

Factory