site->ssls()->where('id', $this->deleteId)->firstOrFail(); $ssl->remove(); $this->refreshComponent([]); $this->dispatchBrowserEvent('confirmed', true); } public function refreshComponent(array $data): void { if (isset($data['type']) && $data['type'] == 'deploy-ssl-failed') { $this->toast()->error(__('SSL creation failed!')); } $this->emit('refreshComponent'); } public function render(): View { return view('livewire.ssl.ssls-list', [ 'ssls' => $this->site->ssls, ]); } }