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

@@ -25,14 +25,14 @@ class ArticleNature extends Model
return $query->where($this->table . '.id', $id);
}
public function scopeByBotanic($query);
public function scopeByBotanic($query)
{
return $query->where($this->table . '.product_type', 1);
return $query->ByProductType(1);
}
public function scopeByMerchandise($query);
public function scopeByMerchandise($query)
{
return $query->where($this->table . '.product_type', 2);
return $query->ByProductType(2);
}
public function scopeByProductType($query, $type)