StorageRequest
class StorageRequest extends Model
Traits
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
The "booted" method of the model.
The user who created this storage request.
The files belonging to this storage request.
Get the created_at_for_humans attribute
Get the expires_at_for_humans attribute
Get the files_count attribute
Get the size attribute
Get the path to the directory or file of this request in the pending storage disk.
Get the path to the directory or file of this request in the storage disk.
Create a new factory instance for the model.
Details
at line 55
static protected void
booted()
The "booted" method of the model.
at line 73
BelongsTo
user()
The user who created this storage request.
at line 83
HasMany
files()
The files belonging to this storage request.
at line 93
string
getCreatedAtForHumansAttribute()
Get the created_at_for_humans attribute
at line 103
string
getExpiresAtForHumansAttribute()
Get the expires_at_for_humans attribute
at line 113
int
getFilesCountAttribute()
Get the files_count attribute
at line 123
int
getSizeAttribute()
Get the size attribute
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.
at line 153
string
getStoragePath(string|null $value = null)
Get the path to the directory or file of this request in the storage disk.
at line 169
static protected Factory
newFactory()
Create a new factory instance for the model.