From 0bb75125a76b79335171909b5a23b9f28110f103 Mon Sep 17 00:00:00 2001 From: ludo Date: Mon, 22 Jan 2024 22:50:56 +0100 Subject: [PATCH] update --- app/Models/Shop/CustomerAddress.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Shop/CustomerAddress.php b/app/Models/Shop/CustomerAddress.php index fc6fefa7..0613aa69 100644 --- a/app/Models/Shop/CustomerAddress.php +++ b/app/Models/Shop/CustomerAddress.php @@ -39,4 +39,9 @@ class CustomerAddress extends Model { return $query->where('type', $id); } + + public function scopeDefault($query) + { + return $query->where('priority', 1); + } }