From c5f06a608c4f60d642a544964d32ffb1c55fbe6d 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); + } }