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