Commit 6ba37d42 authored by Taylor Otwell's avatar Taylor Otwell

Fix token bug in eloquent auth driver.

parent 0993552c
...@@ -18,7 +18,7 @@ class Eloquent extends Driver { ...@@ -18,7 +18,7 @@ class Eloquent extends Driver {
{ {
return $this->model()->find($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; return $token;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment