onQueue('notification'); } public function handle(): void { $user = User::find($this->userId); if ($this->action === 'updated' || $this->action === 'created') { if ($this->oldGroupId) { NodeSyncService::notifyUserRemovedFromGroup($this->userId, $this->oldGroupId); } if ($user) { NodeSyncService::notifyUserChanged($user); } } elseif ($this->action === 'deleted') { if ($this->oldGroupId) { NodeSyncService::notifyUserRemovedFromGroup($this->userId, $this->oldGroupId); } } } }