diff --git a/src/Generator.php b/src/Generator.php index cea5cae..1d9532f 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -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;