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