This commit is contained in:
Andras Bacsai
2023-05-25 13:23:42 +02:00
parent 89ba10ab4e
commit bbd6b68eae
27 changed files with 26 additions and 45 deletions

View File

@@ -12,38 +12,19 @@ use Visus\Cuid2\Cuid2;
class User extends Authenticatable
{
use HasApiTokens, HasFactory, Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array<int, string>
*/
protected $fillable = [
'id',
'name',
'email',
'password',
];
/**
* The attributes that should be hidden for serialization.
*
* @var array<int, string>
*/
protected $hidden = [
'password',
'remember_token',
];
/**
* The attributes that should be cast.
*
* @var array<string, string>
*/
protected $casts = [
'email_verified_at' => 'datetime',
];
protected static function boot()
{
parent::boot();