diff --git a/app/Http/Controllers/Category/IndexController.php b/app/Http/Controllers/Category/IndexController.php index 6e7ecf9f15..c62a29f4b3 100644 --- a/app/Http/Controllers/Category/IndexController.php +++ b/app/Http/Controllers/Category/IndexController.php @@ -85,6 +85,6 @@ final class IndexController extends Controller $categories = new LengthAwarePaginator($collection, $total, $pageSize, $page); $categories->setPath(route('categories.index')); - return view('categories.index', ['categories' => $categories]); + return view('categories.index', ['categories' => $categories, 'page' => $page]); } }