Fix token bug in eloquent auth driver.

This commit is contained in:
Taylor Otwell 2013-01-05 13:28:52 -06:00
parent 0993552c0a
commit 6ba37d42d8
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}