phe18/laravel-pretty-pagination

A package for pretty pagination in Laravel

Maintainers

Package info

github.com/phe18/laravel-pretty-pagination

pkg:composer/phe18/laravel-pretty-pagination

Statistics

Installs: 36

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2025-04-10 04:10 UTC

This package is auto-updated.

Last update: 2026-03-10 06:07:56 UTC


README

This package generates pretty pagination URLs:

http://localhost/users/page/2

Install

Install this package via Composer:

composer require phe18/laravel-pretty-pagination

Usage

To generate pretty URLs simply call the paginate() macro on your routes:

Route::get('/users', ...)->name('users')->paginate();

If you wan't to change the prefix (default is page):

Route::get('/users', ...)->name('users')->paginate('seite');

Or if you don't want to use any prefix:

Route::get('/users', ...)->name('users')->paginate(null);

Notes

  • The route must have a name
  • The paginate() macro must be called as last

License

This package is open-sourced software licensed under the MIT license.