ctsoft / laravel-pretty-pagination
Pretty pagination URLs for Laravel.
Installs: 1 106
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 3
Forks: 5
Open Issues: 0
Requires
- php: ^7.2|^8.0
- illuminate/container: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/http: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/pagination: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/routing: ^6.0|^7.0|^8.0|^9.0|^10.0
- illuminate/support: ^6.0|^7.0|^8.0|^9.0|^10.0
This package is auto-updated.
Last update: 2024-04-12 23:55:09 UTC
README
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.