commit21
This commit is contained in:
+3
-1
@@ -11,6 +11,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Foundation\Auth\User as Authenticatable;
|
||||
use Illuminate\Notifications\Notifiable;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Laravel\Fortify\TwoFactorAuthenticatable;
|
||||
|
||||
/**
|
||||
* @property int $id
|
||||
@@ -44,7 +45,7 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
/** @use HasFactory<UserFactory> */
|
||||
use HasFactory, Notifiable;
|
||||
use HasFactory, Notifiable, TwoFactorAuthenticatable;
|
||||
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
@@ -56,6 +57,7 @@ class User extends Authenticatable
|
||||
return [
|
||||
'purchasing_role' => PurchasingRole::class,
|
||||
'email_verified_at' => 'datetime',
|
||||
'two_factor_confirmed_at' => 'datetime',
|
||||
'password' => 'hashed',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user