*/ protected $fillable = [ 'title', 'message', 'type', ]; /** * The attributes that should be cast. * * @var array */ protected $casts = [ 'type' => NoticeTypeEnum::class, ]; /** * The translatable columns. * * @var list */ public $translatable = [ 'title', 'message', ]; /** * Relations should be included in the cache. * * @var list */ protected static $cacheRelations = [ // TODO: Relations here. ]; /** * Perform any actions required after the model boots. * * @return void */ protected static function booted(): void { static::creating(function (self $model) { // TODO: Methods here. }); static::updating(function (self $model) { // TODO: Methods here. }); static::updated(function (self $model) { // TODO: Methods here. }); static::restoring(function (self $model) { // TODO: Methods here. }); static::deleted(function (self $model) { // TODO: Methods here. }); static::forceDeleted(function (self $model) { // TODO: Methods here. }); } }