From 1c89ced7fde808bff852929b5048eb5f350d4356 Mon Sep 17 00:00:00 2001 From: denghy Date: Fri, 4 Jan 2019 10:36:25 +0800 Subject: [PATCH] orderBy --- app/Domains/Virtual/Services/CompanyAddressService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Domains/Virtual/Services/CompanyAddressService.php b/app/Domains/Virtual/Services/CompanyAddressService.php index e0b38e20..ea615dfd 100644 --- a/app/Domains/Virtual/Services/CompanyAddressService.php +++ b/app/Domains/Virtual/Services/CompanyAddressService.php @@ -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; }