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