-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using DebugBar only in local environment #10
Comments
I would set up the ServiceProvider and alias in app/config/app.php (not local). You can also publish the config and override the values (enable for local, disable otherwise), but you shouldn't have to. |
@barryvdh Cool thank you now it work, I forgot the debug variable 👍 |
in routes.php if($env == 'local') { |
I've a question and I can't figured it out.
I'm using, locally, your awesome debugbar and it works like a charm. But the problem comes when I publish, remotely, my project and the debugbar is still there.
Inside /boostrap/start.php I've
That allow me to use a /app/local/ folder for local configuration and it works fine for everythings. How can I enable debugbar to works only in local Env? Is there any kind of setup ? I can't spot it.
Edit: At the moment I've setup the ServiceProvider and the Alias inside the /app/local/app.php file. Is this the best way to handle it?
The text was updated successfully, but these errors were encountered: