fixes
This commit is contained in:
@@ -14,6 +14,11 @@ class Package extends Model
|
||||
return $this->belongsTo('App\Models\Shop\ArticleFamily');
|
||||
}
|
||||
|
||||
public function unities()
|
||||
{
|
||||
return $this->hasMany('App\Models\Shop\Unity');
|
||||
}
|
||||
|
||||
public function scopeByFamily($query, $id)
|
||||
{
|
||||
return $query->where('article_family_id', $id);
|
||||
|
||||
Reference in New Issue
Block a user