mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-10 12:12:29 +01:00
58 lines
1.0 KiB
PHP
58 lines
1.0 KiB
PHP
|
<?php
|
||
|
|
||
|
namespace Illuminate\Auth;
|
||
|
|
||
|
trait Authenticatable
|
||
|
{
|
||
|
/**
|
||
|
* Get the unique identifier for the user.
|
||
|
*
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function getAuthIdentifier()
|
||
|
{
|
||
|
return $this->getKey();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the password for the user.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getAuthPassword()
|
||
|
{
|
||
|
return $this->password;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the token value for the "remember me" session.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getRememberToken()
|
||
|
{
|
||
|
return $this->{$this->getRememberTokenName()};
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Set the token value for the "remember me" session.
|
||
|
*
|
||
|
* @param string $value
|
||
|
* @return void
|
||
|
*/
|
||
|
public function setRememberToken($value)
|
||
|
{
|
||
|
$this->{$this->getRememberTokenName()} = $value;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Get the column name for the "remember me" token.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getRememberTokenName()
|
||
|
{
|
||
|
return 'remember_token';
|
||
|
}
|
||
|
}
|