Skip to content

Sweet routes for Laravel now with more sugar

Notifications You must be signed in to change notification settings

gboquizosanchez/sweet-routes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sweet Routes for Laravel

Visualise your routes in sweet format with datatables or without.

Sweet Routes

Installation

composer require gboquizo/sweet-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):

Sweet\Routes\ServiceProvider::class,

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

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

Known issues

If you use a version previous to Laravel 6, add this line to config\app.php

'Arr' => Illuminate\Support\Arr::class,

About

Sweet routes for Laravel now with more sugar

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 52.3%
  • PHP 47.7%