debugbar:clear in laravel

PHP
Add DEBUGBAR_ENABLED=false to your .env

Debugbar is totally disabled

You can keep APP_DEBUG=true, hence still keep error details for local development

It is not tracked by git
Source

Also in PHP: