where('tokenable_type', Auth::user()::class) ->findOrFail($id); $token->delete(); $this->dispatch('notify', type: 'success', message: 'API Key gelöscht.'); } public function render() { $tokens = Auth::user() ->tokens() ->latest() ->get(); return view('livewire.ui.system.api-key-table', compact('tokens')); } }