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