orderBy
This commit is contained in:
parent
978219cdce
commit
1c89ced7fd
@ -36,9 +36,9 @@ class CompanyAddressService extends Service
|
||||
public function getCompanyAddress($companyId)
|
||||
{
|
||||
$res = $this->companyAddressRepository->withConditions(['company_id' => $companyId])
|
||||
->orderBy('default', 'desc')
|
||||
->orderBy('updated_at', 'desc')
|
||||
->get();
|
||||
->orderBy('default', 'desc')
|
||||
->orderBy('updated_at', 'desc')
|
||||
->get();
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user