2015-06-01 15:43:37 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App;
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2014-11-07 10:00:30 -06:00
|
|
|
use Illuminate\Auth\Authenticatable;
|
2014-08-29 13:58:51 +02:00
|
|
|
use Illuminate\Database\Eloquent\Model;
|
2014-11-07 10:00:30 -06:00
|
|
|
use Illuminate\Auth\Passwords\CanResetPassword;
|
2015-08-29 16:51:13 -05:00
|
|
|
use Illuminate\Foundation\Auth\Access\Authorizable;
|
2014-11-10 11:51:42 -06:00
|
|
|
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
2015-08-29 16:51:13 -05:00
|
|
|
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
|
2014-10-12 12:20:01 -05:00
|
|
|
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2016-04-15 22:49:14 +01:00
|
|
|
class User extends Model implements AuthenticatableContract, AuthorizableContract, CanResetPasswordContract
|
2015-02-22 20:47:03 -06:00
|
|
|
{
|
2015-08-29 16:51:13 -05:00
|
|
|
use Authenticatable, Authorizable, CanResetPassword;
|
2014-05-02 09:28:10 -05:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
|
|
|
|
* The database table used by the model.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $table = 'users';
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $fillable = ['name', 'email', 'password'];
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
|
|
|
|
* The attributes excluded from the model's JSON form.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $hidden = ['password', 'remember_token'];
|
2014-03-15 10:14:55 +00:00
|
|
|
}
|