Laravel 10 – third-party utilities

Pretty URL Pagination With Numeric Number – generates pretty pagination URLs

Install this package via Composer:

$ composer require ctsoft/laravel-pretty-pagination

Usage:

// To generate pretty URLs simply call the paginate() method on your routes:
Route::get('/users', ...)->name('users')->paginate();

// If you want 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