*/ use BelongsToTenant, HasApiTokens, HasFactory, HasRoles, Notifiable, PasskeyAuthenticatable, TwoFactorAuthenticatable; protected static function booted(): void { static::creating(function (User $user): void { $user->uuid ??= (string) Str::uuid(); }); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', 'two_factor_confirmed_at' => 'datetime', 'is_platform_admin' => 'boolean', 'is_active' => 'boolean', ]; } }