authorize('viewAny', IntegrationToken::class); $this->loadTokens(); } #[On('integrationTokenAdded')] public function loadTokens(): void { $this->tokens = IntegrationToken::ownedByCurrentTeam()->latest()->get(); } public function deleteToken(int $tokenId, string $password = ''): void { $token = IntegrationToken::ownedByCurrentTeam()->findOrFail($tokenId); $this->authorize('delete', $token); $token->delete(); $this->loadTokens(); $this->dispatch('success', 'Integration token deleted successfully.'); } public function render() { return view('livewire.security.integration-tokens'); } }