bugsnag-laravel: Class bugsnag does not exist

Expected behavior

When php artisan is run it should show a list of all commands

Observed behavior

When ran php artisan i got an error

In Container.php line 752:
                                
  Class bugsnag does not exist 

Steps to reproduce

Set APP_ENV to anything but local

Version

laravel/framework 5.5.39 bugsnag/bugsnag-laravel 2.4.3

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Was experiencing this problem in production environment, but not locally.

Running the following commands on production fixed it:

cd bootstrap/cache/
rm -rf *.php

I just add Bugsnag to providers list, and problem solved (Laravel 7)