Closed adzsolt closed 5 years ago
I don't overly understand what you mean, but if by response you mean what comes from the app - it should be in json (so the second is just php arrays to be mapped to json using json_encode) - and not any php objects.
Actual Behaviour
With Laravel 5.2 this call $products = $this->api->get($this->api_key . '/prods?status=1&locations=' . $this->location_id);
return
array:1 [▼ "products" => array:407 [▼ 0 => array:4 [▼ "product" => Product {#2000 ▶} "description" => ProductDescription {#2411 ▶} "id" => 63 "special" => "0.00"
after upgrade to Laravel 5.5 and dingo 2.0.0
array:1 [▼ "products" => array:407 [▼ 0 => array:4 [▼ "product" => array:26 [▶] "description" => array:12 [▶] "id" => 63 "special" => "0.00" ]
Why?