mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 04:23:59 +00:00
big commit
This commit is contained in:
@@ -34,7 +34,7 @@ abstract class AbstractListRecord extends AbstractGetRecord
|
||||
*/
|
||||
public function getResults(Builder $query) {
|
||||
$filters = $this->getDecorationFilters();
|
||||
dd($query->toSql());
|
||||
|
||||
if($filters->has('order_by')){
|
||||
$query = $query->orderBy($filters->get('order_by')->column, $filters->get('order_by')->DESC ? 'DESC': 'ASC');
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ class ListCompaniesLogic extends AbstractControllerLogic
|
||||
try {
|
||||
|
||||
$this->canListCompanies->passes();
|
||||
|
||||
dd($request->input('filters'));
|
||||
$query = $this->listsCompanies->execute($this->listsCompanies->deserializeFilters($request->input('filters')));
|
||||
|
||||
return $this->collectionResponse(CompanyResource::collection($query));
|
||||
|
||||
Reference in New Issue
Block a user