markAsRead(); } public function markAllAsRead(): void { Notification::markAllAsRead(); } #[Computed] public function unreadCount(): int { return Notification::unread()->count(); } /** * @return Collection */ #[Computed] public function notifications(): Collection { return Notification::recent()->get(); } public function render(): View { return view('livewire.notification-bell'); } }