I have a simple form on a one page design. I have it displaying but I am not sure how to reroute it back to the contact form after sbumition. Below is my contactcontroller.
public function store(Request $request)
{
$contact = [];
$contact['firstname'] = $request->get('firstname');
$contact['lastname'] = $request->get('lastname');
$contact['email'] = $request->get('email');
$contact['phone'] = $request->get('phone');
$contact['msg'] = $request->get('msg');
flash('Your Message Has Been Sent! Someone Will Contact You Soon!')->success();
return redirect()->url('This is my question');
}
Single Page Design & Laravel Form
I have a simple form on a one page design. I have it displaying but I am not sure how to reroute it back to the contact form after sbumition. Below is my contactcontroller.