/** * Resolve the given store. * * @param string $name * @return \Illuminate\Contracts\Cache\Repository * @throws Exception */ protected function resolve($name) { try { return parent::resolve($name); } catch (Exception $e) { if ($newDriver = $this->nextDriver($name)) { return $this->resolve($newDriver); } throw $e; } }