ctsoft/laravel-pretty-pagination

Pretty pagination URLs for Laravel.
1,891 17
Install
composer require ctsoft/laravel-pretty-pagination
Latest Version:v1.2.0
PHP:^7.2|^8.0
License:MIT
Last Updated:Aug 24, 2024
Links: GitHub  ·  Packagist
Maintainer: ctsoft

Laravel Pretty Pagination

This package generates pretty pagination URLs:

http://localhost/users/page/2

Install

Install this package via Composer:

composer require ctsoft/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

Security

If you discover any security related issues, please email security@ctsoft.de instead of using the issue tracker.

License

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

Related Packages

witty/laravel-table-view

Laravel 5 Package for easily displaying table views for Eloquent Collections wit...

14,040 46
thinkme/pagination

Laravel pagination on steroids

281 2
jvmartin/laravel5-foundation6-pagination

Foundation for Sites 6 pagination for Laravel 5.

143 0
maikealame/laravel-auto

Laravel helper to make almost everything for your project

4,657 41