lundi 1 février 2016

laravel 5.1 put method MethodNotAllowedHttpException when testing with postman

I am creating basic api on Laravel 5.1,

I have set route using restful controller

Route::resource('api','ApiController');

Then I have created ApiController and I'm testing response using postman. I have used json response response()->json($response);

It is working good for get and post method, but throwing error for put and delete methods.

MethodNotAllowedHttpException RouteCollection.php line 21



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire