fix on weight
This commit is contained in:
@@ -113,6 +113,11 @@ class Offer extends Model
|
||||
return $query->where($this->table.'.stock_current', '>', 0);
|
||||
}
|
||||
|
||||
public function scopeByIds($query, $ids)
|
||||
{
|
||||
return $query->whereIn('id', $ids);
|
||||
}
|
||||
|
||||
public function scopeByArticleNature($query, $article_nature_id)
|
||||
{
|
||||
return $query->whereHas('article.article_nature', function ($query) use ($article_nature_id) {
|
||||
|
||||
Reference in New Issue
Block a user