StorePicture extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $appends : array<string|int, mixed>
- The accessors to append to the model's array form.
- $casts : array<string|int, mixed>
- The attributes that should be cast.
- $dates : array<string|int, mixed>
- Column for soft deletes
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $hidden : array<string|int, mixed>
- The attributes excluded from the model's JSON form.
- $table : string
- The table associated with the model.
- deletePicture() : null
- getUrlAttribute() : string
- Get the user's first name.
- store() : belongsTo
- Get the store that have this pictures.
Properties
$appends
The accessors to append to the model's array form.
protected
array<string|int, mixed>
$appends
= ['url']
$casts
The attributes that should be cast.
protected
array<string|int, mixed>
$casts
= ['path' => 'string', 'type' => 'string']
$dates
Column for soft deletes
protected
array<string|int, mixed>
$dates
= ["deleted_at"]
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['path', 'type']
$hidden
The attributes excluded from the model's JSON form.
protected
array<string|int, mixed>
$hidden
= ['store_id', 'updated_at', 'created_at', 'deleted_at', 'path']
$table
The table associated with the model.
protected
string
$table
= "store_pictures"
Methods
deletePicture()
public
deletePicture() : null
Tags
Return values
null —getUrlAttribute()
Get the user's first name.
public
getUrlAttribute(string $value) : string
Parameters
- $value : string
Return values
string —store()
Get the store that have this pictures.
public
store() : belongsTo