Looking to hire Laravel developers? Try LaraJobs

laravel-route-report maintained by sbuicodev

Description
A Laravel package that provides a command to analyze route definitions and detect duplicate routes and non-existent actions.
Author
Last update
2025/01/28 11:35 (dev-main)
License
Links
Downloads
54

Comments
comments powered by Disqus

Laravel Route Report

A Laravel package that provides a command to analyze route definitions and detect duplicate routes and non-existent actions.

Installation

To install this package, run the following command in your terminal:

composer require sbuicodev/laravel-route-report

Usage

To run the route report command, use the following artisan command:

php artisan route:report

This command will display two tables:

  • Duplicate Routes: A list of routes that are defined more than once, along with their corresponding actions.
  • Non-Existent Actions: A list of routes that point to non-existent actions.

Features

  • Detects duplicate routes and displays them in a table format.
  • Identifies non-existent actions and displays them in a table format.
  • Provides a clear and concise report to help you optimize your route definitions.

Requirements

  • Laravel 10.x or higher
  • PHP 8.1 or higher

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please submit a pull request.

License

This package is licensed under the MIT License.

TODO

  • Implement tests

Author

Stefano Buico (sbuicodev)