[WIP] Admin for Families, Genres and Species

This commit is contained in:
Ludovic CANDELLIER
2020-04-13 01:43:04 +02:00
parent 134e04d197
commit b7edcd402f
37 changed files with 655 additions and 334 deletions

View File

@@ -13,4 +13,10 @@ class Family extends Model
{
return $this->hasMany('App\Models\Shop\Genre');
}
public function scopeByName($query,$name)
{
return $query->where('name', $name);
}
}