定制 air-petr/laravel-find-route-handler 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

air-petr/laravel-find-route-handler

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
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固