How to redirect back to form with input - Laravel 5

后端 未结 9 1208
离开以前
离开以前 2020-12-01 02:53

How do I redirect back to my form page, with the given POST params, if my form action throws an exception?

9条回答
  •  时光说笑
    2020-12-01 03:15

    You can try this:

    return redirect()->back()->withInput(Input::all())->with('message', 'Something 
    went wrong!');
    

提交回复
热议问题