Fix hardcoded "id" column in Eloquent auth driver.

This commit is contained in:
Franz Liedke 2012-09-12 14:48:07 +03:00
parent 38562d5007
commit fedc9fc45e
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ public function attempt($arguments = array())
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;