I have got MethodNotAllowedHttpException when running on online server, but on local server it runs well.
The PHP version is same, the method is used POST. The other POST methods are runs well except this one.
on blade.php
<form action="{{ route('update.product') }}" method="POST" enctype="multipart/form-data" class="form-horizontal js-form">
on routes/web.php
Route::post('/updateProduct', [
'uses' => 'AdminController@updateProducts',
'as' => 'update.product'
]);
Update:
After I changed the route into 'get'
Route::get('/updateProduct', [
'uses' => 'AdminController@updateProducts',
'as' => 'update.product'
]);
it reach the updateProducts function.
but of course there is no data to process. So, why my post method form sent the get method? and on the browser developer tools I've got POST?
but on my local server it runs well only on online server I've got this issue.