| Total Complexity | 2 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class User extends Authenticatable implements MustVerifyEmail |
||
| 15 | { |
||
| 16 | use HasFactory, Notifiable, |
||
|
|
|||
| 17 | Concerns\User\Attribute, |
||
| 18 | Concerns\User\Relation; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The attributes that are mass assignable. |
||
| 22 | * |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | protected $fillable = [ |
||
| 26 | 'username', |
||
| 27 | 'fullname', |
||
| 28 | 'gender', |
||
| 29 | 'email', |
||
| 30 | 'phone_country', |
||
| 31 | 'phone', |
||
| 32 | 'password', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * The attributes that should be hidden for arrays. |
||
| 37 | * |
||
| 38 | * @var array |
||
| 39 | */ |
||
| 40 | protected $hidden = [ |
||
| 41 | 'password', |
||
| 42 | 'remember_token', |
||
| 43 | ]; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * The attributes that should be cast to native types. |
||
| 47 | * |
||
| 48 | * @var array |
||
| 49 | */ |
||
| 50 | protected $casts = [ |
||
| 51 | 'gender' => Gender::class, |
||
| 52 | 'phone' => E164PhoneNumberCast::class, |
||
| 53 | 'email_verified_at' => 'datetime', |
||
| 54 | ]; |
||
| 55 | |||
| 56 | /** |
||
| 57 | * {@inheritDoc} |
||
| 58 | */ |
||
| 59 | 1 | public function sendEmailVerificationNotification() |
|
| 62 | 1 | } |
|
| 63 | |||
| 64 | /** |
||
| 65 | * {@inheritDoc} |
||
| 66 | */ |
||
| 67 | 3 | public function sendPasswordResetNotification($token) |
|
| 72 |