2015-07-27 20:49:37 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Flox;
|
|
|
|
|
|
|
|
use Illuminate\Auth\Authenticatable;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Auth\Passwords\CanResetPassword;
|
2016-02-23 09:36:43 +01:00
|
|
|
use Illuminate\Foundation\Auth\Access\Authorizable;
|
2015-07-27 20:49:37 +02:00
|
|
|
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
|
2016-02-23 09:36:43 +01:00
|
|
|
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
|
2015-07-27 20:49:37 +02:00
|
|
|
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
|
|
|
|
|
2016-02-23 09:36:43 +01:00
|
|
|
class User extends Model implements AuthenticatableContract,
|
|
|
|
AuthorizableContract,
|
|
|
|
CanResetPasswordContract
|
2015-07-27 20:49:37 +02:00
|
|
|
{
|
2016-02-23 09:36:43 +01:00
|
|
|
use Authenticatable, Authorizable, CanResetPassword;
|
2015-07-27 20:49:37 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The database table used by the model.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $table = 'users';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $fillable = ['name', 'email', 'password'];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The attributes excluded from the model's JSON form.
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
protected $hidden = ['password', 'remember_token'];
|
|
|
|
}
|