Giter Site home page Giter Site logo

pretty-routes's Introduction

Pretty Routes for Laravel

Visualise your routes in pretty format.

Pretty RoutesLight Theme

Pretty Routes Dark Theme

StyleCI Status Github Workflow Status Coverage Status Scrutinizer Code Quality For Laravel

Stable Version Unstable Version Total Downloads License

Installation

Laravel Framework

composer require andrey-helldar/pretty-routes --dev

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,

Lumen Framework

composer require andrey-helldar/pretty-routes --dev

In your bootstrap/app/php file add a line above $app->register(App\Providers\RouteServiceProvider::class):

if (env('APP_ENV') !== 'production') {
    $app->register(\PrettyRoutes\ServiceProvider::class);
    $app->configure('pretty-routes');
}

Both frameworks

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.

Upgrade from garygreen/pretty-routes

  1. In your composer.json file, replace "garygreen/pretty-routes": "^1.0" with "andrey-helldar/pretty-routes": "^2.0".
  2. Run the command composer update.
  3. Profit!

Compatibility table

PHP \ Laravel, Lumen 5.0-5.3 5.4 5.5 5.6 5.7 5.8 6.x 7.x 8.x
7.2 Supported, not tested
7.3 Supported, not tested
7.4 Supported, not tested
8.0 Not supported, not tested

pretty-routes's People

Contributors

anandiamy avatar andrey-helldar avatar antonioribeiro avatar borisdamevin avatar casperlaitw avatar deejavu avatar dpslwk avatar foo99 avatar garygreen avatar hailwood avatar hosmelq avatar lloricode avatar neptunedesign avatar poseso avatar relliv avatar renedekat avatar ridaamirini avatar shi974 avatar tvbeek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.