diff --git a/src/Generator.php b/src/Generator.php index e0d90ff..27444ed 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -71,7 +71,7 @@ class Generator protected function detectDrivers() { try{ - if (class_exists('Cache')) { + if (class_exists('Auth')) { $class = get_class(\Auth::driver()); $this->extra['Auth'] = array($class); $this->interfaces['\Illuminate\Auth\UserProviderInterface'] = $class;