with this url http://localhost:8888/api/v1/apartments/delete , I'm trying to delete a determinate apartment without passing the id through the URL. I'm sending data with POSTMAN but I can't catch it with Request or Input classes.
Routes.php
Route::delete('/api/v1/apartments/delete', 'ApartmentApiController@destroy');
ApartmentApiController
public function destroy(Request $request)
{
dd($request->all());
}
In methods like UPDATE Request is working but not here in DELETE. Why is this? I'm a little bit curious and I have not found it.
It's a good practice to delete passing the item id in the URL like this? Should I do like this? http://localhost:8888/api/v1/apartments/delete/13