Skip to content

Commit c8196b1

Browse files
committed
Don't custonize paginator.
1 parent eb22ddb commit c8196b1

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/Repositories/Repository.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -558,14 +558,6 @@ public function index(RestifyRequest $request)
558558
return $repository->authorizedToShow($request);
559559
})->values();
560560

561-
$paginator = Container::getInstance()->makeWith(LengthAwarePaginator::class, [
562-
'items' => $items,
563-
'total' => $items->count(),
564-
'perPage' => $paginator->perPage(),
565-
'currentPage' => $paginator->currentPage(),
566-
'options' => $paginator->getOptions(),
567-
]);
568-
569561
return response()->json(
570562
$this->filter([
571563
'meta' => $this->when(

0 commit comments

Comments
 (0)