mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eda37f3442 |
@@ -224,6 +224,7 @@ exit('Only to be used as an helper for your IDE');\n\n";
|
||||
}
|
||||
|
||||
public function getDriver($alias){
|
||||
try{
|
||||
if($alias == "Auth"){
|
||||
$driver = \Auth::driver();
|
||||
}elseif($alias == "DB"){
|
||||
@@ -237,6 +238,10 @@ exit('Only to be used as an helper for your IDE');\n\n";
|
||||
}
|
||||
|
||||
return get_class($driver);
|
||||
}catch(\Exception $e){
|
||||
$this->error("Could not determine driver/connection for $alias.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user