This package generates pretty pagination URLs:
http://localhost/users/page/2
Install this package via Composer:
composer require ctsoft/laravel-pretty-pagination
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);
- The route must have a name
- The
paginate()
macro must be called as last
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
This package is open-sourced software licensed under the MIT license.