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 379f42b commit 96b3a90Copy full SHA for 96b3a90
stubs/Models/PHP8.0/Repository/RedisRepository.stub
@@ -6,15 +6,15 @@ use Illuminate\Cache\CacheManager;
6
7
abstract class RedisRepository
8
{
9
+ private CacheManager $cache;
10
+
11
public function __construct()
12
13
+ $this->cache = app('cache');
14
}
15
- /**
- * @return CacheManager
- */
16
- public function newConnection()
+ protected function getCache(): CacheManager
17
18
- return app('cache');
+ return $this->cache;
19
20
0 commit comments