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