get(); return view('livewire.security.private-key.index', [ 'privateKeys' => $privateKeys, ])->layout('components.layout'); } public function cleanupUnusedKeys() { try { $this->authorize('create', PrivateKey::class); PrivateKey::cleanupUnusedKeys(); $this->dispatch('success', 'Unused keys have been cleaned up.'); } catch (\Throwable $e) { return handleError($e, $this); } } }