'hashed', ]; } protected function name(): Attribute { return Attribute::make( get: fn () => $this->profile?->full_name ?? $this->username ); } public function expenses(): HasMany { return $this->hasMany(Expense::class); } public function profile(): HasOne { return $this->hasOne(UserProfile::class); } }