server/src/app/Models/User.php
changeset 2 00e2916104fe
child 27 a2342f26c9de
equal deleted inserted replaced
1:01a844d292ac 2:00e2916104fe
       
     1 <?php
       
     2 
       
     3 namespace CorpusParole\Models;
       
     4 
       
     5 use Illuminate\Auth\Authenticatable;
       
     6 use Illuminate\Database\Eloquent\Model;
       
     7 use Illuminate\Auth\Passwords\CanResetPassword;
       
     8 use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
       
     9 use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
       
    10 
       
    11 class User extends Model implements AuthenticatableContract, CanResetPasswordContract
       
    12 {
       
    13     use Authenticatable, CanResetPassword;
       
    14 
       
    15     /**
       
    16      * The database table used by the model.
       
    17      *
       
    18      * @var string
       
    19      */
       
    20     protected $table = 'users';
       
    21 
       
    22     /**
       
    23      * The attributes that are mass assignable.
       
    24      *
       
    25      * @var array
       
    26      */
       
    27     protected $fillable = ['name', 'email', 'password'];
       
    28 
       
    29     /**
       
    30      * The attributes excluded from the model's JSON form.
       
    31      *
       
    32      * @var array
       
    33      */
       
    34     protected $hidden = ['password', 'remember_token'];
       
    35 }