Skip to content

otilor/rootz

 
 

Repository files navigation

Laravel Rootz

Visualise your routes in an intuistic way. This is the Tailwind CSS version of https://github.com/garygreen/pretty-routes

Pretty Routes

Installation

composer require humaneguy/rootz

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):

Rootz\ServiceProvider::class,

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

php artisan vendor:publish --provider="Rootz\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.

Inspiration

Thanks goes to @garygreen that created Pretty Routes

About

Pretty routes for Laravel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Blade 70.3%
  • PHP 29.7%