fix on customer auth, fix filters on shelves, refactor for article_nature, add slug

This commit is contained in:
ludo
2023-10-17 17:20:30 +02:00
parent 002644cb97
commit e6b15e2438
30 changed files with 1205 additions and 177 deletions

View File

@@ -35,6 +35,11 @@ class ArticleNature extends Model implements HasMedia
return $query->where($this->table.'.id', $id);
}
public function scopeBySlug($query, $slug)
{
return $query->where($this->table.'.slug', $slug);
}
public function scopeByBotanic($query)
{
return $query->ByProductType(1);