change icons, css, add routing to merchandise, add mail templater, fixes

This commit is contained in:
Ludovic CANDELLIER
2023-02-12 23:34:48 +01:00
parent c5ae71544a
commit 7449229ff7
71 changed files with 1486 additions and 154 deletions

View File

@@ -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)