1 | <?php |
||
2 | |||
3 | namespace Ikechukwukalu\Requirepin\Models; |
||
4 | |||
5 | use Illuminate\Database\Eloquent\Factories\HasFactory; |
||
6 | use Illuminate\Foundation\Auth\User as Authenticatable; |
||
7 | use Illuminate\Notifications\Notifiable; |
||
8 | use Laravel\Sanctum\HasApiTokens; |
||
9 | |||
10 | class TestUser extends Authenticatable |
||
11 | { |
||
12 | use HasApiTokens, HasFactory, Notifiable; |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
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 | ]; |
||
47 | } |
||
48 |