Package with laravel route commands.
composer require mcmatters/laravel-route-commands
Include the service provider within your
'providers' => [ McMatters\RouteCommands\ServiceProvider::class, ]
php artisan route:check— checks all routes for existing the methods in controller and unique route names.
php artisan route:export— export all routes to json or xml file.