Support the ongoing development of →
Requests Input
Last updated 3 months ago.

Can you show your routes file and the form code? It seems something is not defined corretcly.

Options are:

  • Your route not defined as POST
  • Invalid method in controller, if you're using one
  • Form sending data as GET, instead POST


Route::post('/',function(){ $data = Input::all(); var_dump($data); });


<form action="{{ url('/') }}" method="POST"> <input type="text" name="test" value="test" /> <input type="submit" /> </form>

When i click submit, post data to the home path, and it had error.. symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException

But when i change the action to other path, it's okay.

Last updated 7 years ago.

Sign in to participate in this thread!


Your banner here too?

laisangbum laisangbum laisangbum Joined 29 Jan 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 - All rights reserved.