tokens() ->with('application') ->orderBy('issued_at', 'desc') ->get() ->groupBy('application.name') ->sortKeys(); } public function revokeToken($tokenId) { $token = AuthenticationToken::where('id', $tokenId) ->where('user_id', Auth::id()) ->first(); if ($token) { $token->delete(); $this->dispatch('token-revoked'); } } public function render() { return view('livewire.manage-authentication-tokens')->title('Authentication Tokens'); } }