How to safely remove Laravel Debugbar
Stefan Izdrail
Founder & Senior Architect · 2026-06-29
As a senior developer and technical blogger, you may come across situations where you need to remove unneeded components from other people's Laravel applications. One such occurrence is the presence of the Laravel debugbar. This tool might be installed by default in Laravel apps for development purposes but could cause confusion or issues when not intended to be used.
Identifying the Laravel Debugbar
Begin by analyzing your application to confirm that the tool you are referring to is indeed the Laravel debugbar. It appears as a panel at the bottom of each page, displaying various development tools like debugging and profiling information. Often, this tool's name or label would be "Laravel Debugbar" on its top left corner.
Checking for Storage/Debugger Directory
Since you have found a potential Laravel debugbar in your application, it is likely stored within the storage/debugger directory. Examine this folder to verify if it contains any files related to the debugging tool. These files would typically end with '.php' or '.css' extensions. If the contents of this directory are indeed related to Laravel Debugbar, proceed to the next step.
Deactivating the Laravel Debugbar
Open your application's 'app/config/debugbar.php' file. This file contains configurations for Laravel debugbar.
Locate the 'enabled' configuration option, which is set to true by default. Change it to false, indicating you want to disable the Laravel Debugbar in your application.
Removing Laravel Debugbar Files
Delete any related files and folders within your 'storage/debugger' directory. If you're unsure about the importance of these files, consult with your team or a professional if necessary.
Clear out all caches and config files to ensure that the changes made in this process are effective and take effect immediately. Refer to Laravel's documentation for more information on cache management and clearing.
Testing Your Application After Removal
Open your application in a web browser, ensuring that the debugbar is no longer visible or accessible.
Test the functionality of your application and check for any potential issues resulting from the removal of the Laravel Debugbar. If you encounter problems, revert back to the previous configuration and consult with a professional developer.
Conclusion:
Removing the Laravel Debugbar can be done safely if you follow the proper steps and take necessary precautions. Always double-check for any vital files before removing them, as this could lead to unintended consequences in your application.
Read more about how to remove Laravel Debugbar safely on the Laravel Company's blog.
