Total Complexity | 2 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Admin extends Authenticatable implements MustVerifyEmail |
||
14 | { |
||
15 | use HasApiTokens, HasFactory, Notifiable; |
||
|
|||
16 | |||
17 | /** |
||
18 | * The attributes that are mass assignable. |
||
19 | * |
||
20 | * @var array<int, string> |
||
21 | */ |
||
22 | protected $fillable = [ |
||
23 | 'name', |
||
24 | 'email', |
||
25 | 'password', |
||
26 | ]; |
||
27 | |||
28 | /** |
||
29 | * The attributes that should be hidden for serialization. |
||
30 | * |
||
31 | * @var array<int, string> |
||
32 | */ |
||
33 | protected $hidden = [ |
||
34 | 'password', |
||
35 | 'remember_token', |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * The attributes that should be cast. |
||
40 | * |
||
41 | * @var array<string, string> |
||
42 | */ |
||
43 | protected $casts = [ |
||
44 | 'email_verified_at' => 'datetime', |
||
45 | ]; |
||
46 | |||
47 | /** |
||
48 | * Send the password reset notification. |
||
49 | * |
||
50 | * @param string $token |
||
51 | */ |
||
52 | 3 | public function sendPasswordResetNotification($token) |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * Send the email verification notification. |
||
59 | */ |
||
60 | 2 | public function sendEmailVerificationNotification() |
|
65 |