phe18/laravel-pretty-pagination
Composer 安装命令:
composer require phe18/laravel-pretty-pagination
包简介
A package for pretty pagination in Laravel
README 文档
README
This package generates pretty pagination URLs:
http://localhost/users/page/2
Install
Install this package via Composer:
composer require phe18/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
License
This package is open-sourced software licensed under the MIT license.
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-10