$roles */ public function notifyOrganization( Organization $organization, Notification $notification, array $roles = ['org_admin', 'branch_manager', 'supervisor'], ): void { $refs = Member::query() ->where('organization_id', $organization->id) ->whereIn('role', $roles) ->pluck('user_ref'); User::query() ->whereIn('public_id', $refs) ->each(fn (User $user) => $user->notify($notification)); } public function queueEvent( Organization $organization, string $title, string $message, ?string $url = null, string $icon = 'bell', ): void { $this->notifyOrganization($organization, new QueueStaffNotification($title, $message, $url, $icon)); } }