Minor fixes, coding standards
This commit is contained in:
@@ -32,12 +32,11 @@ class Category extends Model
|
||||
|
||||
public function CategoryTree()
|
||||
{
|
||||
return $this->belongsTo(app('rinvex.categories.category'),'category_id');
|
||||
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