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