updateForm($form, $request->validated()); return redirect()->route('admin.forms.index') ->with('success', 'Form updated successfully.'); } }