Fix hardcoded "id" column in Eloquent auth driver.
This commit is contained in:
parent
38562d5007
commit
fedc9fc45e
|
@ -52,7 +52,7 @@ public function attempt($arguments = array())
|
||||||
|
|
||||||
if ( ! is_null($user) and Hash::check($password, $user->{$password_field}))
|
if ( ! is_null($user) and Hash::check($password, $user->{$password_field}))
|
||||||
{
|
{
|
||||||
return $this->login($user->id, array_get($arguments, 'remember'));
|
return $this->login($user->get_key(), array_get($arguments, 'remember'));
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue