validated(); $lead = UserLead::create($validated); $redirectUrl = config('landing.lead_redirect_url'); if ($redirectUrl) { $urlWithEmail = $redirectUrl.'?email='.urlencode($validated['email']); return response('', 409)->header('X-Inertia-Location', $urlWithEmail); } return to_route('home')->with('success', 'Thank you for your interest!'); } }