private function setCachedSettings(Collection $settings)
    {
        $expiresAt = Carbon::now()->addMinutes(15);
        $settings  = $settings->toArray();

        Cache::put(self::CACHE_NAME, $settings, $expiresAt);

        $this->fireEvent('cache_updated', array($settings));
    }
private function setCachedSettings(Collection $settings)
    {
        $expiresAt = Carbon::now()->addMinutes(15);
        $settings  = $settings->toArray();

        Cache::put(self::CACHE_NAME, $settings, $expiresAt);

        $this->fireEvent('cache_updated', array($settings));
    }
private function setCachedSettings ( Collection $ settings ) { $ expiresAt = Carbon :: now ( ) -> addMinutes ( 15 ) ; $ settings = $ settings -> toArray ( ) ; Cache :: put ( self :: CACHE_NAME , $ settings , $ expiresAt ) ; $ this -> fireEvent ( 'cache_updated' , array ( $ settings ) ) ; }
Set new settings data to cache.

@param \Illuminate\Support\Collection $settings
Set new settings data to cache .