artisticre
9 months ago

Single Page Design & Laravel Form

Posted 9 months ago by artisticre

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');
    }

Please sign in or create an account to participate in this conversation.