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