New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

ctsoft/laravel-pretty-pagination

Pretty pagination URLs for Laravel.
1,896 17
Install
composer require ctsoft/laravel-pretty-pagination
Latest Version:v1.2.0
PHP:^7.2|^8.0
Laravel:6 – 10
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

styde/blade-pagination

Laravel's pagination with Blade templating support

14,436 70
oval/laravel-pagination

Pagination helper library for Laravel

746 1
thinkme/pagination

Laravel pagination on steroids

281 2
revolution/laravel-pagination-bulma

Laravel pagination template for Bulma

13,245 6
usmanhalalit/strana

Pagination library for PHP, framework agnostic, with built-in adapters for Doctr...

7,417 93

Version History

Version Released PHP Laravel License
v1.2.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v1.1.0 ^7.2|^8.0 ^6.0|^7.0|^8.0|^9.0 MIT
v1.0.0 ^7.2 ^6.0|^7.0|^8.0 MIT