Manage homepage by article, modify article template, enhance basket (add selector)

This commit is contained in:
Ludovic CANDELLIER
2022-03-24 00:48:26 +01:00
parent ddc5f2664c
commit c65056531c
13 changed files with 277 additions and 148 deletions

View File

@@ -131,4 +131,9 @@ class Article extends Model implements HasMedia
{
return $query->where($this->table . '.visible', 1);
}
public function scopeHomepage($query)
{
return $query->where($this->table . '.homepage', 1);
}
}