commit 08-2025
This commit is contained in:
parent
824fa43e96
commit
3b2253147b
393 changed files with 43842 additions and 18418 deletions
|
|
@ -51,6 +51,11 @@ class ShippingCountry extends Model
|
|||
return $this->hasMany('App\Models\ShoppingOrder', 'country_id');
|
||||
}
|
||||
|
||||
public function hasShoppingOrders()
|
||||
{
|
||||
return $this->shopping_orders()->exists();
|
||||
}
|
||||
|
||||
|
||||
public static function getActiveShippingCountries(){
|
||||
$ret = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue