From ab85ca4c5a19e1706884b7596024a675c8aec256 Mon Sep 17 00:00:00 2001 From: flynsarmy Date: Wed, 28 Jan 2015 14:31:20 +1000 Subject: [PATCH] Check for driver method on Auth facade --- src/Generator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;