update($data); return $form; } /** * Remove the specified form and its submissions. * * @param Form $form The form model to delete. * @return bool True if successful. */ public function deleteForm(Form $form): bool { return (bool) $form->delete(); } /** * Remove a specific form submission. * * @param FormSubmission $submission The submission to delete. * @return bool True if successful. */ public function deleteSubmission(FormSubmission $submission): bool { return (bool) $submission->delete(); } }