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