问题 I am creating an API for Laravel. I use the PUT method for updating data. I send data with Postman using the PUT method. In my controller, I got an empty array. How to access the passed data? In my route, I have: Route::put('vehicletypes/{id}','API\VehicletypeController@update'); In my controller: public function update(Request $request, $id){ print_r($request->all()); exit; } How to get the data passed in PUT method? 回答1: You are getting empty response because PHP have some security