InfoColorsEnum::class, ]; // * EVENTS /** * Perform any actions required after the model boots. * * @return void */ protected static function booted() { static::created(function () { cache()->put('infos', Information::all(), 3600); }); static::updated(function () { cache()->put('infos', Information::all(), 3600); }); static::deleted(function () { cache()->put('infos', Information::all(), 3600); }); } }