findOrFail($this->all()['key_id']); $key->deployTo($this->server); $this->dispatch('$refresh')->to(ServerKeysList::class); $this->dispatch('added'); } public function render(): View { return view('livewire.server-ssh-keys.add-existing-key', [ 'keys' => SshKey::all(), ]); } }