Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nscherneck's avatar

Laravel Debug-bar

Because the documentation states that the debug-bar will slow down your application, I want to get some clarification on what it means to use it in development only. I've got a local environment, staging server, and production server. So if I've got APP_DEBUG set accordingly in my respective .env files, is this what's meant by development only? Or should it be in the require-dev section of the composer.json file, or both?

0 likes
2 replies
Snapey's avatar
Snapey
Best Answer
Level 122

both. there is no point in including the library in your production code if it never gets run.

nscherneck's avatar

Thank you @Snapey. This lead to learning more about the composer option --no-dev and forced some changes in my workflow. Finally feel confident that my dev packages are only being installed in my local environment.

Please or to participate in this conversation.