Getting a MethodNotAllowedHttpException when deployed to server.

Posted 9 months ago by marcosdipaolo

When i hit submit in a form with method POST i get the Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException. No message error. I already checked the route and it doesn't get to the controller. This DOESN'T happen in my local environment.

 <form id="postPublish" action="/post/editPost/" method="POST" enctype="multipart/form-data">
Route::post('/post/editPost/' , '[email protected]');

It works locally.

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

Reply to

Use Markdown with GitHub-flavored code blocks.