*/ use HasFactory; use HasModelNaming; use HasTranslations; use SoftDeletes; /** * The attributes that are mass assignable. * * @var list */ 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', ]; }