How to Disable Laravel debug bar and how can I remove this

DevOps

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Step 1: Go to .env file

DEBUGBAR_ENABLED=false
APP_DEBUG=false

Step 2: Go to TERMINAR and run this Commnad

php artisan cache:clear

But the app debug bar is still showing on the frontend

Step 3: Go to app/Providers/AppServiceProvider.php and Put this code \Debugbar::disable();

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        \Debugbar::disable(); 
    }
}

Step 4: Go to TERMINAR and run this Commnad

php artisan cache:clear

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x