added eloquent model detection to eloquent auth driver

This commit is contained in:
Shawn McCool
2012-05-28 11:31:21 +02:00
parent 988dae2488
commit 11c67a56cc
2 changed files with 24 additions and 5 deletions

View File

@@ -107,10 +107,6 @@ abstract class Driver {
*/
public function login($token, $remember = false)
{
// if the token is an Eloquent model
// set the token from the id field
if ($token instanceof Eloquent) $token = $token->get_key();
$this->token = $token;
$this->store($token);