My previous PR (#112) doesn't handle the case when someone makes a request with the Content-Type: application/json header. The $request->input method will use the JSON data (payload) instead of the request data (parameters).
The easiest fix is to use the $request->get method from Symfony, as it can retrieve data from both the query string and request body parameters.
My previous PR (#112) doesn't handle the case when someone makes a request with the
Content-Type: application/json
header. The$request->input
method will use the JSON data (payload) instead of the request data (parameters).The easiest fix is to use the
$request->get
method from Symfony, as it can retrieve data from both the query string and request body parameters.