eloquent model detection moved to eloquent driver
This commit is contained in:
@@ -5,7 +5,6 @@ use Laravel\Cookie;
|
||||
use Laravel\Config;
|
||||
use Laravel\Session;
|
||||
use Laravel\Crypter;
|
||||
use Laravel\Database\Eloquent\Model as Eloquent;
|
||||
|
||||
abstract class Driver {
|
||||
|
||||
@@ -107,10 +106,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);
|
||||
|
||||
Reference in New Issue
Block a user