biscofil / laravel-route-summary
Create Laravel route summary
v1.0.5
2020-10-20 13:26 UTC
Requires
- php: ^7.0
- ext-json: *
- illuminate/console: ^5.7|^6.0|^7.0|^8.0
- illuminate/routing: ^5.7|^6.0|^7.0|^8.0
- illuminate/support: ^5.7|^6.0|^7.0|^8.0
Requires (Dev)
- orchestra/testbench: ^3.7|^3.8|^6.0
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^7.0|9.0
README
Create an HTML graphical summary of all the routes of your Laravel project. The package also checks for the binding type of each method's argument, returning an error if the parameter name specified in the route definition does not match the one in the contoller.
The routes are exported in both Html/Json files where they are represented in the following format:
[ { "uri": "\/", "name": "homepage", "controller": "App\\Http\\Controllers\\HomeController", "controller_method": "index", "parameters": [], "methods": [ "GET" ], "middleware": [ "web" ] }, { "uri": "new", "name": "new_foo", "controller": "App\\Http\\Controllers\\Auth\\RegisterController", "controller_method": "index", "parameters": [], "methods": [ "GET" ], "middleware": [ "web", "guest" ] } ]
Installation
composer require --dev biscofil/laravel-route-summary
Usage
php artisan route:summary
Credits
License
license. Please see the license file for more information.