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