I've a route defined as below:
Route::resource('api/invoice', 'InvoiceController');
In my controller I have a function destroy($id)
When sending a DELETE
request to /api/invoice
with an id: 2
as parameter and I get a 405 error message back.
I tried accessing this route from Postman and from a javascript code directly, without success...
Any ideas?