Skip to content

Instantly share code, notes, and snippets.

@Merazsohel
Created February 3, 2022 14:36
Show Gist options
  • Save Merazsohel/1929db5f6cf38221d093b484c38d0c13 to your computer and use it in GitHub Desktop.
Save Merazsohel/1929db5f6cf38221d093b484c38d0c13 to your computer and use it in GitHub Desktop.
Pagination Serial number sequence
$page = request()->get("page") != "" ? intval(request()->get("page")) : 1;
$sl = ($page - 1) * 100;
{{ ++$sl }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment