Asset
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory
Class Asset.
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'storage_asset'
Properties
- $file : StorageFile|null
- $file_id : int
- $file_mime_type : string|null
- $id : int
- $local_path : string
- $module_id : string
- $name : string
- $package_id : string
- $url : string|null
- $appends : mixed
- $fillable : array<string|int, string>
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : AssetFactory
- file() : BelongsTo
- getFileMimeTypeAttribute() : string|null
- getUrlAttribute() : string|null
- isModified() : bool
- moduleName() : string
- newFactory() : AssetFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'storage_asset'
Properties
$file
public
StorageFile|null
$file
$file_id
public
int
$file_id
$file_mime_type
public
string|null
$file_mime_type
$id
public
int
$id
$local_path
public
string
$local_path
$module_id
public
string
$module_id
$name
public
string
$name
$package_id
public
string
$package_id
$url
public
string|null
$url
$appends
protected
mixed
$appends
= ['url', 'file_mime_type']
$fillable
protected
array<string|int, string>
$fillable
= ['name', 'module_id', 'package_id', 'file_id', 'local_path']
$table
protected
mixed
$table
= 'storage_assets'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : AssetFactory
Parameters
- $parameters : mixed
Return values
AssetFactoryfile()
public
file() : BelongsTo
Return values
BelongsTogetFileMimeTypeAttribute()
public
getFileMimeTypeAttribute() : string|null
Return values
string|nullgetUrlAttribute()
public
getUrlAttribute() : string|null
Return values
string|nullisModified()
public
isModified() : bool
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringnewFactory()
protected
static newFactory() : AssetFactory