Laravel-debugbar: Unnecessary routing information is displayed by "artisan route:list" command.

Created on 3 Jun 2020  路  7Comments  路  Source: barryvdh/laravel-debugbar

I'm always helped by a great tool Laravel Debugbar.

But, I ran into a bit problem.
When I use the "php artisan route:list" command to display the routing information, I get the "_debugbar" information that I don't need.

The content is here.
laravel-debug

The routing information starting with "_debugbar" is I don't need it.
Is it possible to hide this information?

By the way, I tried to set "APP_DEBUG=false" in the .env file and disabled the Laravel Debugbar, but it was still displayed.


Laravel Framework 6.18.13
barryvdh/laravel-debugbar - version: v3.3.3

stale

Most helpful comment

The command you need:

php artisan route:list --except-path _debugbar, _(use comma without space to exclude multiple paths)_

Works only in Laravel 8.34 and above

All 7 comments

Pretty annoying... Is there a way to fix it?

Without Debugbar

without-debugbar

With Debugbar

with-debugbar

any updates on this ? same problem here.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

The command you need:

php artisan route:list --except-path _debugbar, _(use comma without space to exclude multiple paths)_

Works only in Laravel 8.34 and above

@denkeel
Thank you for your reply.

I tried the command you told me.

However, it didn't work.
Here is the message appeared.

The "--except-path" option does not exist.

Is this due to the version of Laravel?

I tried the following two versions and both got the same error message.

Laravel Framework 5.5.50
Laravel Framework 8.15.0

@kakisoft Yes, the problem is the version of Laravel. This feature is actually brand new hah. It was released only in Laravel 8.34 two month ago, so need to use this version or above

@denkeel
Thank you for your great information!
Then It actually worked. Now i got routing detail without debugbar

Also, i wrote about it on my blog ,in Japanese though.
https://www.kakistamp.com/entry/2021/05/07/005940

Was this page helpful?
0 / 5 - 0 ratings

Related issues

truongthaison picture truongthaison  路  4Comments

Megachill picture Megachill  路  3Comments

ddmo picture ddmo  路  3Comments

thomthom picture thomthom  路  5Comments

Thijmen picture Thijmen  路  6Comments