andrey-helldar / pretty-routes
Pretty Routes for Laravel
Fund package maintenance!
Boosty
Yoomoney
Donationalerts
Installs: 8 513
Dependents: 0
Suggesters: 0
Security: 0
Stars: 96
Watchers: 3
Forks: 78
Open Issues: 0
Requires
- php: ^7.3 || ^8.0
- ext-json: *
- dragon-code/contracts: ^2.6
- dragon-code/laravel-routes-core: ^4.1 || ^5.0
- dragon-code/laravel-support: ^3.3
- dragon-code/support: ^5.6 || ^6.1
- illuminate/contracts: >=6.0 <12.0
- illuminate/http: >=6.0 <12.0
- illuminate/routing: >=6.0 <12.0
- illuminate/support: >=6.0 <12.0
- illuminate/view: >=6.0 <12.0
Requires (Dev)
- mockery/mockery: ^1.0
- orchestra/testbench: >=4.0 <10.0
- phpunit/phpunit: ^8.0 || ^9.6 || ^10.0
Conflicts
- dev-main
- 3.x-dev
- 3.5.0
- 3.4.0
- v3.3.0
- v3.2.2
- v3.2.1
- v3.2.0
- v3.1.0
- v3.0.0
- 2.x-dev
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.1
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- v1.26.3
- v1.26.2
- v1.26.1
- v1.26.0
- v1.25.1
- v1.25.0
- v1.24.0
- v1.23.1
- v1.23.0
- v1.22.1
- v1.22.0
- v1.21.2
- v1.21.1
- v1.20.0
- v1.19.0
- v1.18.0
- v1.17.1
- v1.17.0
- v1.16.0
- v1.15.1
- v1.15.0
- v1.14.0
- v1.13.2
- v1.13.1
- v1.13.0
- v1.12.3
- v1.12.2
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.0
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.1
- v1.7.0
- v1.6.0
- v1.5.1
- v1.5.0
- v1.4.0
- v1.3.0
- v1.2.0
- v1.1.2
- v1.1.1
- v1.1.0
- v1.1.0-alpha1
- v1.0.2
- v1.0.1
- v1.0.0
This package is auto-updated.
Last update: 2024-12-11 18:11:05 UTC
README
Visualise your routes in pretty format.
Installation
Laravel Framework
To get the latest version of Pretty Routes
, simply require the project using Composer:
composer require dragon-code/pretty-routes --dev
Lumen Framework
We do not provide support for the Lumen Framework because we consider it to be an insufficiently functional product, as a result of which various errors may occur on more recent versions of Lumen.
In addition, Taylor Otwell also announced the end of support for Lumen.
To get the latest version of Pretty Routes
, simply require the project using Composer:
composer require dragon-code/pretty-routes dragon-code/laravel-routes-core:^4.1 --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'); }
Next, copy config file to config/pretty-routes.php
and change options to:
return [
// ...
'web_middleware' => null,
'api_middleware' => null,
// ...
];
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 another packages
Upgrade from andrey-helldar/pretty-routes
- In your
composer.json
file, replace"andrey-helldar/pretty-routes": "^2.0"
with"dragon-code/pretty-routes": "^3.0"
. - Run the command
composer update
. - Profit!
Upgrade from garygreen/pretty-routes
- In your
composer.json
file, replace"garygreen/pretty-routes": "^1.0"
with"dragon-code/pretty-routes": "^3.0"
. - Run the command
composer update
. - Profit!
Using
Open the /routes
uri. For example, http://localhost:8000/routes
License
This package is licensed under the MIT License.