*/ use HasFactory, Notifiable; public function isSuperadmin(): bool { return $this->role === 'superadmin'; } public function isAdminDun(): bool { return $this->role === 'admin'; } public function dun(): BelongsTo { return $this->belongsTo(Dun::class, 'dun_id'); } /** * Guna e-mel dalam Bahasa Melayu untuk pautan set semula kata laluan. */ public function sendPasswordResetNotification(#[\SensitiveParameter] $token): void { $this->notify(new ResetKataLaluanNotification($token)); } /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'email_verified_at' => 'datetime', 'password' => 'hashed', ]; } }