where('workspace_id', $workspace->id) ->firstOrFail(); $this->webhookId = $webhookId; $this->webhookUrl = $webhook->url; } public function delete(): void { $workspace = app('current_workspace'); Webhook::where('id', $this->webhookId) ->where('workspace_id', $workspace->id) ->firstOrFail() ->delete(); $this->dispatch('webhookDeleted', webhookId: $this->webhookId); $this->closeModal(); } public static function modalMaxWidth(): string { return 'sm'; } public function render(): View { return view('livewire.modals.delete-webhook'); } }