'required|exists:forms,slug', 'hook_url' => 'required|string|url', ]; } public function instanciateHook() { $form = Form::whereSlug($this->form_slug)->firstOrFail(); return new FormZapierWebhook([ 'form_id' => $form->id, 'hook_url' => $this->hook_url, ]); } }