Synchro back-office, fix on tariffs
This commit is contained in:
@@ -35,4 +35,9 @@ class Category extends Model
|
||||
return $this->belongsTo(app('rinvex.categories.category'),'category_id');
|
||||
}
|
||||
|
||||
public function scopeByCategory($query, $category_id)
|
||||
{
|
||||
return $query->where('category_id', $category_id);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user