change icons, css, add routing to merchandise, add mail templater, fixes
This commit is contained in:
@@ -141,12 +141,12 @@ class Article extends Model implements HasMedia
|
||||
|
||||
public function scopeByProduct($query, $model)
|
||||
{
|
||||
return $query->where($this->table . '.product_type', $model);
|
||||
return $model ? $query->where($this->table . '.product_type', $model) : $query;
|
||||
}
|
||||
|
||||
public function scopeByProductId($query, $model_id)
|
||||
public function scopeByProductId($query, $product_id)
|
||||
{
|
||||
return $query->where($this->table . '.product_id', $model_id);
|
||||
return $product_id ? $query->where($this->table . '.product_id', $product_id) : $query;
|
||||
}
|
||||
|
||||
public function scopeByTag($query, $tag_id)
|
||||
|
||||
Reference in New Issue
Block a user