change registration or connection in order page, change filter on shelve page, add new api to get article_nature by product_type, css fixes
This commit is contained in:
@@ -24,4 +24,19 @@ class ArticleNature extends Model
|
||||
{
|
||||
return $query->where($this->table . '.id', $id);
|
||||
}
|
||||
|
||||
public function scopeByBotanic($query);
|
||||
{
|
||||
return $query->where($this->table . '.product_type', 1);
|
||||
}
|
||||
|
||||
public function scopeByMerchandise($query);
|
||||
{
|
||||
return $query->where($this->table . '.product_type', 2);
|
||||
}
|
||||
|
||||
public function scopeByProductType($query, $type)
|
||||
{
|
||||
return $query->where($this->table . '.product_type', $type);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user