s-patompong/laravel-routes-html
Composer 安装命令:
composer require s-patompong/laravel-routes-html
包简介
View your Laravel routes on the browser.
README 文档
README
This package adds a route to your Laravel application. Once you've installed this package, enter /route-list path in the browser to see your route list.
laravel-routes-html.mov
Features
- See all routes in your Laravel application in a nicely formatted table with responsive layout.
- Sort routes by domain, method, uri, name, action, and middleware.
- Quickly filter to see only the routes that you want. 🎉
- Click on the GET|HEAD route to open it on a new tab. You need to specify the parameters if the route requires them. 😎
Installation
You can install the package via composer:
composer require s-patompong/laravel-routes-html
You can publish the config file with:
php artisan vendor:publish --tag="routes-html-config"
Optionally, you can publish the views using
php artisan vendor:publish --tag="routes-html-views"
This is the contents of the published config file:
return [ /** * Either you want to enable or disable the route * It should be enabled only in the local environment * By default, it'll be enabled if the app.debug is true */ 'enabled' => (bool) env('ROUTES_HTML_ENABLED', config('app.debug')), /** * The route URI */ 'uri' => '/route-list', /** * The route name */ 'route_name' => 'routes', /** * The list of route to ignore */ 'ignore_routes' => [ '_ignition/*', 'sanctum/*', 'livewire/*', ], /** * The list of middleware that you want * the request to run through before hitting * the /route-list route */ 'middlewares' => [ // Example: uncomment the first line below // to allow only the authenticated user // to use the /route-list route // \App\Http\Middleware\Authenticate::class ], ];
Usage
Open your Laravel application on the browser and go to /route-list URL (or the URL that you put inside the routes-html.uri).
Route Middlewares
To add middlewares to the request pipeline before it hits the /route-list route.
Add the middleware classname to the middlewares key in the config file like so:
'middlewares' => [ \App\Http\Middleware\Authenticate::class ]
This will make sure that only the authenticated user can access the /route-list route.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
s-patompong/laravel-routes-html 适用场景与选型建议
s-patompong/laravel-routes-html 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 4.64k 次下载、GitHub Stars 达 26, 最近一次更新时间为 2021 年 11 月 25 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「route-list」 「s-patompong」 「laravel-routes-html」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 s-patompong/laravel-routes-html 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 s-patompong/laravel-routes-html 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 s-patompong/laravel-routes-html 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Display all the registered route list like laravel
Alfabank REST API integration
Convert between Nano currency units.
PHP Retrier lets you retry your logic easily.
Laravel package for Accurate Online API integration.
Shared RCX Laravel DataTables UI and configuration helpers.
统计信息
- 总下载量: 4.64k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 26
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-11-25