fruitcake / laravel-telescope-toolbar

A toolbar for Laravel Telescope, based on the Symfony Web Profiler.
MIT License
778 stars 39 forks source link

Add separate environment variable for toolbar #27

Closed bilfeldt closed 4 years ago

bilfeldt commented 4 years ago

This PR adds a new environment variable TELESCOPE_TOOLBAR_ENABLED which can be used to disable telescope toolbar even if Telescope is enabled (which one cannot do with the current setup).

If the environment variable is not provided, then it will default to the current setting, which is to use the same environment variable used to enable/disable Laravel Telescope.

Why to implement this? Because there are cases where one would like to disable the Toolbar while still having Laravel Telescope enabled. This could be while working on some frontend stuff where the toolbar should be disabled.