In my routes.php, when I have:
Route::delete('page/{id}', function ($id)
{
return "deleting $id";
});
And I send a delete or get request using Postman, This throws a MethodNotAllowedHttpException.
When I change routes.php:
Route::get('page/{id}', function ($id)
{
return "deleting $id";
});
It responds the string deleting... in response to GET, DELETE and PUT!
But the HTTP code is 403.
It just throws a MethodNotAllowedHttpException on a POST request.
This problem seems to occur only on remote server and it works as expected on localhost.
Is there anything in Laravel that maybe redirects or changes methods to GET?