Merge pull request #155 from Flynsarmy/authMethodExists

Check for driver method on Auth facade
This commit is contained in:
Barry vd. Heuvel
2015-02-04 07:41:52 +01:00
+1 -1
View File
@@ -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;