mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
Add CacheStore
This commit is contained in:
@@ -232,6 +232,12 @@ exit('Only to be used as an helper for your IDE');\n\n";
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the driver/connection/store from the managers
|
||||||
|
*
|
||||||
|
* @param $alias
|
||||||
|
* @return array|bool|string
|
||||||
|
*/
|
||||||
public function getDriver($alias){
|
public function getDriver($alias){
|
||||||
try{
|
try{
|
||||||
if($alias == "Auth"){
|
if($alias == "Auth"){
|
||||||
@@ -239,7 +245,9 @@ exit('Only to be used as an helper for your IDE');\n\n";
|
|||||||
}elseif($alias == "DB"){
|
}elseif($alias == "DB"){
|
||||||
$driver = \DB::connection();
|
$driver = \DB::connection();
|
||||||
}elseif($alias == "Cache"){
|
}elseif($alias == "Cache"){
|
||||||
$driver = \Cache::driver();
|
$driver = get_class(\Cache::driver());
|
||||||
|
$store = get_class(\Cache::getStore());
|
||||||
|
return array($driver, $store);
|
||||||
}elseif($alias == "Queue"){
|
}elseif($alias == "Queue"){
|
||||||
$driver = \Queue::connection();
|
$driver = \Queue::connection();
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user