| Total Complexity | 0 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class User extends Authenticatable |
||
| 12 | { |
||
| 13 | use HasApiTokens, HasFactory, Notifiable; |
||
|
|
|||
| 14 | |||
| 15 | /** |
||
| 16 | * The attributes that are mass assignable. |
||
| 17 | * |
||
| 18 | * @var array<int, string> |
||
| 19 | */ |
||
| 20 | protected $fillable = [ |
||
| 21 | 'name', |
||
| 22 | 'email', |
||
| 23 | 'password', |
||
| 24 | ]; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * The attributes that should be hidden for serialization. |
||
| 28 | * |
||
| 29 | * @var array<int, string> |
||
| 30 | */ |
||
| 31 | protected $hidden = [ |
||
| 32 | 'password', |
||
| 33 | 'remember_token', |
||
| 34 | ]; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The attributes that should be cast. |
||
| 38 | * |
||
| 39 | * @var array<string, string> |
||
| 40 | */ |
||
| 41 | protected $casts = [ |
||
| 42 | 'email_verified_at' => 'datetime', |
||
| 43 | ]; |
||
| 45 |