This commit is contained in:
ludo
2025-02-15 12:12:42 +01:00
parent d1cc62c9b1
commit 592402a6c1
53 changed files with 1098 additions and 404 deletions

View File

@@ -30,8 +30,13 @@ class Variation extends Model
return $this->hasMany(Offer::class);
}
public function scopeByPackage($query, $package_id)
public function scopeByPackage($query, $packageId)
{
return $query->where($this->table.'.package_id', $package_id);
return $query->where($this->table . '.package_id', $packageId);
}
public function scopeByUnity($query, $unityId)
{
return $query->where($this->table . '.unity_id', $unityId);
}
}