Check for driver method on Auth facade

This commit is contained in:
flynsarmy
2015-01-28 14:31:20 +10:00
parent c94012232f
commit ab85ca4c5a
+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;