'boolean', 'last_login_at' => 'datetime', 'password' => 'hashed', 'two_factor_confirmed_at' => 'datetime', ]; } protected function fullName(): Attribute { return Attribute::get(fn () => $this->profile?->full_name ?? $this->username); } public function profile(): HasOne { return $this->hasOne(UserProfile::class); } public function student(): HasOne { return $this->hasOne(Student::class); } public function lecturer(): HasOne { return $this->hasOne(Lecturer::class); } public function notifications(): HasMany { return $this->hasMany(Notification::class); } }