laravel-api-handler
laravel-api-handler copied to clipboard
order by a child column
trafficstars
how to send a request to order by a column form 'with' table
here is my backend code
$query = Product::query();
$query->company();
$query->with('category');
$result=ApiHandler::parseMultiple($query);
return $result->getResponse();
and the request url
http://localhost/public/api/v1/product/view/0?&_offset=0&_limit=10&_config=meta-total-count,meta-filter-count&_sort=-category.category_name
I have the same issue. @spectrumworx do you find a solution?
Currently not possible due to the way relationships work in Laravel. Basically the same underlying problem as with issue #10.
+1
+1