diff --git a/src/Generator.php b/src/Generator.php
index <HASH>..<HASH> 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;
Check for driver method on Auth facade