'object' ]; /** * The attributes that should be cast to Enums. * * @var array */ protected $enumCasts = [ 'type' => GeneralConfigType::class ]; /** * The attributes that are mass assignable. * * @var array */ protected $fillable = [ 'type', 'data' ]; /** * Perform any actions required after the model boots. * * @return void */ protected static function booted() { static::created(function () { self::removeCached(); }); static::updated(function () { self::removeCached(); }); static::deleted(function () { self::removeCached(); }); } }