Developing an application using Laravel 5.2, PHP7.0, Apache2 and CentOS 7, I'm having the following error: MethodNotAllowedHttpException .
On the local server it works normally ... when I publish to the production server the error occurs, it follows the screen:
Routes:
I'mtryingtoreach(POST)theURL:/en/create
Intheroutefile:
Route::group(['prefix'=>'es'],function(){Route::group(['middleware'=>'auth'],function(){Route::post('create','SearchController@create');});});
View:
<h1>Create</h1><formmethod="POST" action="/es/create/" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="text" name="index">
<button type="submit">CREATE</button>
</form>
I did not put the controller here because it does not even get to the controller ... on the route.
I have tried the enctype="application / x-www-form-urlencoded" as per some posts ... but it did not work.
Would anyone have a suggestion?
Thank you!
Q.: I found several posts in English, but none with the solution I need.