big commit

This commit is contained in:
omair saleh
2021-04-06 16:30:33 +08:00
parent 2cbf827c89
commit b779ae8964
@@ -34,7 +34,7 @@ abstract class AbstractListRecord extends AbstractGetRecord
*/
public function getResults(Builder $query) {
$filters = $this->getDecorationFilters();
$query->toSql();
dd($query->toSql());
if($filters->has('order_by')){
$query = $query->orderBy($filters->get('order_by')->column, $filters->get('order_by')->DESC ? 'DESC': 'ASC');
}