end(self::GUARD, (int) auth()->id(), $uuid); $this->dispatch('notify', message: __('sessions.ended')); } /** * Raised by the confirmation modal (R23), never called from the markup. * The check stays here, at the one place that already had it. */ #[On('sessions-end-others-confirmed')] public function endOthers(): void { $registry = app(SessionRegistry::class); $count = $registry->endOthers(self::GUARD, (int) auth()->id(), $registry->currentUuid()); $this->dispatch('notify', message: __('sessions.ended_others', ['n' => $count])); } public function render() { $registry = app(SessionRegistry::class); $current = $registry->currentUuid(); return view('livewire.sessions', [ 'sessions' => $registry->for(self::GUARD, (int) auth()->id(), $current), 'confirmComponent' => 'confirm-end-other-sessions', ]); } }