*/ use HasApiTokens, HasFactory, HasUuid, Notifiable, SoftDeletes; protected function casts(): array { return [ 'birthdate' => 'date', 'email_verified_at' => 'datetime', 'anonymized_at' => 'datetime', 'is_active' => 'boolean', 'password' => 'hashed', ]; } protected function fullName(): Attribute { return Attribute::get( fn (): string => trim("{$this->first_name} {$this->last_name}") ); } public function wallet(): HasOne { return $this->hasOne(Wallet::class); } public function bookings(): HasMany { return $this->hasMany(Booking::class); } public function washes(): HasMany { return $this->hasMany(Wash::class); } public function gdprConsents(): HasMany { return $this->hasMany(GdprConsent::class); } public function notificationPreference(): HasOne { return $this->hasOne(NotificationPreference::class); } }