/** * Use the given cache instance. * * @param \Illuminate\Contracts\Cache\Store $cache * @return $this */ public function cache(Store $cache = null) { $cache = $cache ?: $this->make(CacheRepository::class)->getStore(); $this->clipboard->setCache($cache); return $this; }
/** * Use the given cache instance. * * @param \Illuminate\Contracts\Cache\Store $cache * @return $this */ public function cache(Store $cache = null) { $cache = $cache ?: Container::getInstance()->make(Store::class); $this->clipboard->setCache($cache); return $this; }