Add extra functions to User.

This commit is contained in:
Taylor Otwell 2014-04-15 11:06:27 -05:00
parent dff012070e
commit f138f0f4fc
1 changed files with 31 additions and 0 deletions

View File

@ -39,6 +39,37 @@ public function getAuthPassword()
return $this->password; return $this->password;
} }
/**
* Get the token value for the "remember me" session.
*
* @return string
*/
public function getRememberToken()
{
return $this->remember_token;
}
/**
* Set the token value for the "remember me" session.
*
* @param string $value
* @return void
*/
public function setRememberToken($value)
{
$this->remember_token = $value;
}
/**
* Get the column name for the "remember me" token.
*
* @return string
*/
public function getRememberTokenName()
{
return 'remember_token';
}
/** /**
* Get the e-mail address where password reminders are sent. * Get the e-mail address where password reminders are sent.
* *