De-clutter default models.
This commit is contained in:
parent
443cad582c
commit
6983f4d177
|
@ -1,10 +1,14 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Auth\UserTrait;
|
||||||
use Illuminate\Auth\UserInterface;
|
use Illuminate\Auth\UserInterface;
|
||||||
|
use Illuminate\Auth\RemindableTrait;
|
||||||
use Illuminate\Auth\Reminders\RemindableInterface;
|
use Illuminate\Auth\Reminders\RemindableInterface;
|
||||||
|
|
||||||
class User extends Eloquent implements UserInterface, RemindableInterface {
|
class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||||
|
|
||||||
|
use UserTrait, RemindableTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The database table used by the model.
|
* The database table used by the model.
|
||||||
*
|
*
|
||||||
|
@ -19,65 +23,4 @@ class User extends Eloquent implements UserInterface, RemindableInterface {
|
||||||
*/
|
*/
|
||||||
protected $hidden = array('password');
|
protected $hidden = array('password');
|
||||||
|
|
||||||
/**
|
|
||||||
* 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->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.
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function getReminderEmail()
|
|
||||||
{
|
|
||||||
return $this->email;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue