air-petr/laravel-find-route-handler
最新稳定版本:v1.0.1
Composer 安装命令:
composer require air-petr/laravel-find-route-handler
包简介
An Artisan command to find the handler behind any route in your Laravel application.
README 文档
README
An Artisan command to find the handler (controller or closure) behind any route in your Laravel application.
📦 Installation
composer require air-petr/laravel-find-route-handler --dev
If you're not using Laravel Package Auto-Discovery, you may need to manually register the service provider:
// config/app.php 'providers' => [ // ... AirPetr\LaravelFindRouteHandler\RouteFindHandlerServiceProvider::class, ],
🚀 Usage
Use the route:find-handler command to locate the code behind a specific route.
php artisan route:find-handler GET /hello
Output example:
[✔] Handler found: App\Http\Controllers\HelloController@index
Or, for a route with a closure:
[✔] Handler found in routes/web.php on line 42
🛠 Supported Features
- ✅ Supports
GET,POST,PUT,DELETE, and other HTTP methods - ✅ Works with route closures and controller actions
- ✅ Supports route groups and middleware
🥪 Testing
vendor/bin/phpunit
🙌 Contributing
Contributions are welcome! Feel free to submit issues or pull requests.
📄 License
MIT
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-13