Skip to content

Commit 96b3a90

Browse files
committed
Minor Change in Base RedisRepository
1 parent 379f42b commit 96b3a90

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stubs/Models/PHP8.0/Repository/RedisRepository.stub

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ use Illuminate\Cache\CacheManager;
66

77
abstract class RedisRepository
88
{
9+
private CacheManager $cache;
10+
911
public function __construct()
1012
{
13+
$this->cache = app('cache');
1114
}
1215

13-
/**
14-
* @return CacheManager
15-
*/
16-
public function newConnection()
16+
protected function getCache(): CacheManager
1717
{
18-
return app('cache');
18+
return $this->cache;
1919
}
2020
}

0 commit comments

Comments
 (0)