[WIP] Admin for Families, Genres and Species
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user