diff --git a/laravel/auth/drivers/eloquent.php b/laravel/auth/drivers/eloquent.php index fb401d68..3bb8a5ef 100644 --- a/laravel/auth/drivers/eloquent.php +++ b/laravel/auth/drivers/eloquent.php @@ -18,7 +18,7 @@ public function retrieve($token) { return $this->model()->find($token); } - else if (get_class($token) == Config::get('auth.model')) + else if (is_object($token) and get_class($token) == Config::get('auth.model')) { return $token; }