| 1 | <?php |
||
| 13 | class User extends Model implements AuthenticatableContract, |
||
|
|
|||
| 14 | AuthorizableContract, |
||
| 15 | CanResetPasswordContract |
||
| 16 | { |
||
| 17 | use Authenticatable, Authorizable, CanResetPassword; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The database table used by the model. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $table = 'users'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The attributes that are mass assignable. |
||
| 28 | * |
||
| 29 | * @var array |
||
| 30 | */ |
||
| 31 | protected $fillable = ['name', 'email', 'password']; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The attributes excluded from the model's JSON form. |
||
| 35 | * |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $hidden = ['password', 'remember_token']; |
||
| 39 | } |
||
| 40 |