|
|
@@ -2,15 +2,13 @@
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
-// use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
|
-use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
+use Illuminate\Contracts\Auth\MustVerifyEmail;
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
|
|
-class User extends Authenticatable
|
|
|
+class User extends Authenticatable implements MustVerifyEmail
|
|
|
{
|
|
|
- /** @use HasFactory<\Database\Factories\UserFactory> */
|
|
|
- use HasFactory, Notifiable;
|
|
|
+ use Notifiable;
|
|
|
|
|
|
/**
|
|
|
* The attributes that are mass assignable.
|
|
|
@@ -21,6 +19,7 @@ class User extends Authenticatable
|
|
|
'name',
|
|
|
'email',
|
|
|
'password',
|
|
|
+ 'role',
|
|
|
];
|
|
|
|
|
|
/**
|