Orphan Controller
Quickly identify controller methods with no route in your Laravel applications.
Installation
You can install the package via Composer:
composer require ryangjchandler/laravel-orphan-controller --dev
You can publish the config file with:
php artisan vendor:publish --provider="RyanChandler\LaravelOrphanController\LaravelOrphanControllerServiceProvider" --tag="orphan-controller-config"
This is the contents of the published config file:
return [
'paths' => [
app_path('Http/Controllers'),
],
];
Usage
This package provides a single Artisan command - orphan-controller:find
.
You can run this command in your terminal:
php artisan orphan-controller:find
By default, it will look through each path inside of the orphan-controller.paths
configuration value.
When an orphaned controller method is discovered, it will be added to a table and printed in your console:
You can also use the --compact
flag to output a more compact table:
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.