fixed category search #2zftmy9
This commit is contained in:
parent
766c6faea3
commit
071d500fa6
@ -26,7 +26,7 @@ class Categories extends Controller
|
||||
{
|
||||
$query = Category::with('sub_categories');
|
||||
|
||||
if (request()->expectsJson()) {
|
||||
if (request()->has('search')) {
|
||||
$query->withSubcategory();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user