laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

Can I use barryvdh/laravel-debugbar in laravel 9 / Inertiajs/vuejs 3 app?

Open sergeynilov opened this issue 2 years ago • 5 comments

Is it possible to install and use barryvdh/laravel-debugbar in laravel 9 / Inertiajs/vuejs 3 app?

I installed it and added line in .env :

DEBUGBAR_ENABLED=true

But do not have bar at bottom of the page...

Have I to make some more steps ?

Thanks!

sergeynilov avatar May 01 '22 11:05 sergeynilov

Yes. It works great with Laravel 9.

Make sure that the service provider is correctly added, and that you have recompiled the app.js after installing it.

anibalealvarezs avatar May 01 '22 15:05 anibalealvarezs

Please, detalize if it works with Inertiajs ? When app is created with command :
laravel new AppName --jetand next Inertiajs is selected ?

sergeynilov avatar May 02 '22 06:05 sergeynilov

Yes, it does. Here is a package that uses it along with Inertia: https://github.com/anibalealvarezs/projectbuilder-package

anibalealvarezs avatar May 02 '22 07:05 anibalealvarezs

Random note that I hope someone finds: this package can unintentionally cause mayhem in the storage/debugbar folder (on windows at least) when using larave-vite if you have a window open with your testing suite (cypress).

When you run cypress it will move around .env files, this ended up causing my main window to break. I went to sleep and woke up to a horrific number of JSON files in the storage/debugbar folder. This is probably caused by the vite ping feature which kept firing into a 404.

WalrusSoup avatar May 21 '22 20:05 WalrusSoup

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.

stale[bot] avatar Jul 31 '22 05:07 stale[bot]

it seems its not working anymore with most updated laravel breeze starter-kit and most updated debugbar it's totally working well but inertia losing SPA ability and will do reload or refresh on each request!

Mobin-khorushi avatar Oct 08 '23 21:10 Mobin-khorushi

?? Did you try CTRL + SHIFT + R? That works for me

parallels999 avatar Oct 09 '23 13:10 parallels999