fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user