We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fca8835 commit 4307b85Copy full SHA for 4307b85
src/Illuminate/Cache/CacheManager.php
@@ -58,7 +58,7 @@ public function store($name = null)
58
{
59
$name = $name ?: $this->getDefaultDriver();
60
61
- return $this->stores[$name] = $this->get($name);
+ return $this->stores[$name] ??= $this->resolve($name);
62
}
63
64
/**
@@ -72,17 +72,6 @@ public function driver($driver = null)
72
return $this->store($driver);
73
74
75
- /**
76
- * Attempt to get the store from the local cache.
77
- *
78
- * @param string $name
79
- * @return \Illuminate\Contracts\Cache\Repository
80
- */
81
- protected function get($name)
82
- {
83
- return $this->stores[$name] ?? $this->resolve($name);
84
- }
85
-
86
87
* Resolve the given store.
88
*
0 commit comments