mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-19 02:23:11 +00:00
Merge pull request #155 from Flynsarmy/authMethodExists
Check for driver method on Auth facade
This commit is contained in:
+1
-1
@@ -114,7 +114,7 @@ class Generator
|
|||||||
protected function detectDrivers()
|
protected function detectDrivers()
|
||||||
{
|
{
|
||||||
try{
|
try{
|
||||||
if (class_exists('Auth')) {
|
if (class_exists('Auth') && method_exists('Auth', 'driver')) {
|
||||||
$class = get_class(\Auth::driver());
|
$class = get_class(\Auth::driver());
|
||||||
$this->extra['Auth'] = array($class);
|
$this->extra['Auth'] = array($class);
|
||||||
$this->interfaces['\Illuminate\Auth\UserProviderInterface'] = $class;
|
$this->interfaces['\Illuminate\Auth\UserProviderInterface'] = $class;
|
||||||
|
|||||||
Reference in New Issue
Block a user