lambq/paginateroute
最新稳定版本:0.0.1
Composer 安装命令:
composer require lambq/paginateroute
包简介
A simple Laravel Library to connect/publish/subscribe to MQTT broker
README 文档
README
.
Installing
$ composer require lambq/paginateroute -vvv
irst register the service provider and facade in your application.
// config/app.php
'providers' => [
...
'Spatie\PaginateRoute\PaginateRouteServiceProvider',
];
'aliases' => [
...
'PaginateRoute' => 'Spatie\PaginateRoute\PaginateRouteFacade',
];
Then register the macros in App\Providers\RouteServiceProvider::boot().
// app/Providers/RouteServiceProvider.php
use PaginateRoute;
// ...
public function boot()
{
PaginateRoute::registerMacros();
parent::boot();
}
Usage
The paginate route macro will register two routes for you.
// app/Http/routes.php
// Generates /users & /users/page/{page}
Route::paginate('users', 'UsersController@index');
In your route's action you can just use Laravel's regular pagination methods.
// app/Http/Controllers/UsersController.php
public function index()
{
return view('users.index', ['users' => \App\User::simplePaginate(5)]);
}
If you want to customize or add translations for the "page" url segment, you can publish the language files.
$ php artisan vendor:publish --provider="Lambq\Paginateroute\PaginateRouteServiceProvider"
TODO
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT
lambq/paginateroute 适用场景与选型建议
lambq/paginateroute 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 07 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「laravel」 「php 7.4」 「laravel-8」 「laravel8」 「php 8」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 lambq/paginateroute 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 lambq/paginateroute 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 lambq/paginateroute 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Laravel credit card validator
A simple Laravel Library to connect/publish/subscribe to MQTT broker
A Laravel Library to find Lat and Long of a given Specific Address
A simple Laravel Library to connect/publish/subscribe to MQTT broker
Alfabank REST API integration
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-11