src/Bouncer.php
public function cache(Store $cache = null)
    {
        $cache = $cache ?: $this->resolve(CacheRepository::class)->getStore();

        if ($this->usesCachedClipboard()) {
            $this->guard->getClipboard()->setCache($cache);

            return $this;
        }

        return $this->setClipboard(new CachedClipboard($cache));
    }
public function cache(Store $cache = null)
    {
        $cache = $cache ?: $this->resolve(CacheRepository::class)->getStore();

        if ($this->usesCachedClipboard()) {
            $this->guard->getClipboard()->setCache($cache);

            return $this;
        }

        return $this->setClipboard(new CachedClipboard($cache));
    }
public function cache ( Store $ cache = null ) { $ cache = $ cache ? : $ this -> resolve ( CacheRepository :: class ) -> getStore ( ) ; if ( $ this -> usesCachedClipboard ( ) ) { $ this -> guard -> getClipboard ( ) -> setCache ( $ cache ) ; return $ this ; } return $ this -> setClipboard ( new CachedClipboard ( $ cache ) ) ; }
Use a cached clipboard with the given cache instance.

@param  \Illuminate\Contracts\Cache\Store  $cache
@return $this
Use a cached clipboard with the given cache instance .