Method not allowed (PATCH) in Laravel API 5.8

  api, laravel, laravel-5.8, laravel-api, postman

I am trying to send information to an api route with the put or patch method, but it does not work, I get error 405 (method not allowed), I am using laravel 5.8, I don’t want to use the route type "resource", can you help me please .
I am also using postman to send the information.

This is my route:

Route::patch('categorias_cliente/update/{categoria}', '[email protected]')->name('api.v1.categorias_cliente.update');

This is my function in the controller:

public function update(Request $request, $categoria)
   return 1;


enter image description here

Source: Laravel

Leave a Reply