Blog User Guide Documentation API Login Register

Documentation > Reference

Asset Model

Last updated February 16, 2024

Properties

Namespace Modules\Assets\Models
Classname Asset
Extends App\Models\Model
Uses Modules\Users\Traits\Authorable
Table assets

Makeup

Attributes

name slug description location original extension mimetype

Observers

Relationships


Observers

deleting

During the deleting model event, the physical file associated with the asset is removed from storage.

Relationships

directories()

The Asset model has a BelongsToMany relationship with the Directory model.