garygreen / pretty-routes by garygreen

Pretty routes for Laravel 5+
795,137
649
13
Package Data
Maintainer Username: garygreen
Maintainer Contact: holegary@gmail.com (Gary Green)
Package Create Date: 2016-08-26
Package Last Update: 2024-03-12
Home Page:
Language: Blade
License: MIT
Last Refreshed: 2024-04-17 15:00:09
Package Statistics
Total Downloads: 795,137
Monthly Downloads: 12,978
Daily Downloads: 637
Total Stars: 649
Total Watchers: 13
Total Forks: 74
Total Open Issues: 13

Pretty Routes for Laravel 5

Visualise your routes in pretty format.

Pretty Routes

Installation

composer require garygreen/pretty-routes

If your using autodiscovery in Laravel, it should just work.

Otherwise - add to your config/app.php providers array to where all your package providers are (before your app's providers):

PrettyRoutes\ServiceProvider::class,

By default the package exposes a /routes url. If you wish to configure this, publish the config.

php artisan vendor:publish --provider="PrettyRoutes\ServiceProvider"

If accessing /routes isn't working, ensure that you've included the provider within the same area as all your package providers (before all your app's providers) to ensure it takes priority.

By default pretty routes only enables itself when APP_DEBUG env is true. You can configure this on the published config as above, or add any custom middlewares.