validate([ 'reason' => ['required', 'string', 'in:bug_report,general_feedback,missing_data'], 'message' => ['required', 'string', 'max:5000'], ]); Notification::route('mail', config('mail.support_address', 'hello@flightsgoneby.com')) ->notify(new SupportRequestSubmitted( name: $request->user()->name, email: $request->user()->email, reason: $validated['reason'], message: $validated['message'], )); return back()->with('success', 'Your message has been sent.'); } }