Skip to content

Instantly share code, notes, and snippets.

@Merazsohel
Last active September 9, 2021 09:30
Show Gist options
  • Save Merazsohel/7755bca88b3fb5b6913a2deb72d44559 to your computer and use it in GitHub Desktop.
Save Merazsohel/7755bca88b3fb5b6913a2deb72d44559 to your computer and use it in GitHub Desktop.
Laravel LengthAwarePaginator
$items = new LengthAwarePaginator(
$items->forPage(LengthAwarePaginator::resolveCurrentPage(), 10),
$items->count(),
10,
LengthAwarePaginator::resolveCurrentPage(),
["path" => route("home",["key" => $request->get("value") ])]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment