I have a form with "email" field. If the email field is blank then I want to redirect back to the same form with the alert message. I have tried the code
return Redirect::back()
->withErrors($validator)
->withInput();
It gets redirected to the desired page but i am getting MethodNotAllowedHttpException in RouteCollection.php line 218: this error. I am getting the alert message as desired once i click on the back button of the browser. How to resolve this?