| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | namespace App; | 3 | namespace App; | |
| 4 | 4 | |||
| 5 | use Illuminate\Notifications\Notifiable; | 5 | use Illuminate\Notifications\Notifiable; | |
| 6 | use Illuminate\Contracts\Auth\MustVerifyEmail; | 6 | use Illuminate\Contracts\Auth\MustVerifyEmail; | |
| 7 | use Illuminate\Foundation\Auth\User as Authenticatable; | 7 | use Illuminate\Foundation\Auth\User as Authenticatable; | |
| 8 | 8 | |||
| 9 | class User extends Authenticatable | 9 | class User extends Authenticatable | |
| 10 | { | 10 | { | |
| 11 | use Notifiable; | 11 | use Notifiable; | |
| 12 | 12 | |||
| 13 | /** | 13 | /** | |
| 14 | * The attributes that are mass assignable. | 14 | * The attributes that are mass assignable. | |
| 15 | * | 15 | * | |
| 16 | * @var array | 16 | * @var array | |
| 17 | */ | 17 | */ | |
| 18 | protected $fillable = [ | 18 | protected $fillable = [ | |
| 19 | 'name', 'email', 'password', | 19 | 'name', 'email', 'password', | |
| 20 | ]; | 20 | ]; | |
| 21 | 21 | |||
| 22 | /** | 22 | /** | |
| 23 | * The attributes that should be hidden for arrays. | 23 | * The attributes that should be hidden for arrays. | |
| 24 | * | 24 | * | |
| 25 | * @var array | 25 | * @var array | |
| 26 | */ | 26 | */ | |
| 27 | protected $hidden = [ | 27 | protected $hidden = [ | |
| 28 | 'password', 'remember_token', | 28 | 'password', 'remember_token', | |
| 29 | ]; | 29 | ]; | |
| -+ | 30 | |||
| 31 | /** | |||
| 32 | * The attributes that should be cast to native types. | |||
| 33 | * | |||
| 34 | * @var array | |||
| 35 | */ | |||
| 36 | protected $casts = [ | |||
| 37 | 'email_verified_at' => 'datetime', | |||
| 38 | ]; | |||
| 30 | } | = | 39 | } |