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