2018-10-04 20:10:43 +03:00
|
|
|
<?php
|
|
|
|
|
|
2018-10-12 22:29:34 +11:00
|
|
|
namespace App\Models;
|
2018-10-04 20:10:43 +03:00
|
|
|
|
2018-10-05 21:40:02 +10:00
|
|
|
use Illuminate\Notifications\Notifiable;
|
2018-10-15 16:00:48 +11:00
|
|
|
use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
2018-10-04 20:10:43 +03:00
|
|
|
|
|
|
|
|
class User extends Authenticatable
|
|
|
|
|
{
|
|
|
|
|
use Notifiable;
|
|
|
|
|
|
2018-10-15 16:00:48 +11:00
|
|
|
protected $guard = 'user';
|
2018-10-04 20:10:43 +03:00
|
|
|
/**
|
|
|
|
|
* The attributes that are mass assignable.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $fillable = [
|
2018-10-15 16:00:48 +11:00
|
|
|
'first_name', 'last_name', 'email', 'password',
|
2018-10-04 20:10:43 +03:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The attributes that should be hidden for arrays.
|
|
|
|
|
*
|
|
|
|
|
* @var array
|
|
|
|
|
*/
|
|
|
|
|
protected $hidden = [
|
|
|
|
|
'password', 'remember_token',
|
|
|
|
|
];
|
|
|
|
|
}
|