Skip to content

Commit f721d42

Browse files
committed
Update: show all categories for parent category
1 parent 06ee678 commit f721d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Http/Controllers/Admin/CategoryController.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public function index()
2626

2727
$categories = $query->paginate(2);
2828
$total = $categories->total();
29-
30-
return view('admin.categories.index', compact('categories', 'total'));
29+
$allCategories = Category::get();
30+
return view('admin.categories.index', compact('categories', 'total', 'allCategories'));
3131
}
3232

3333

0 commit comments

Comments
 (0)