rollbar / rollbar-php-laravel

Rollbar error monitoring integration for Laravel projects
https://docs.rollbar.com/docs/laravel
140 stars 39 forks source link

Composer cant't find RollbarServiceProvider #79

Closed koencg closed 5 years ago

koencg commented 5 years ago

I removed rollbar/rollbar-laravel, upgraded laravel to 5.7 and installed rollbar/rollbar-laravel again.

composer require rollbar/rollbar-laravel Using version ^4.0 for rollbar/rollbar-laravel ./composer.json has been updated

php artisan clear-compiled

In ProviderRepository.php line 208:

Class 'Rollbar\Laravel\RollbarServiceProvider' not found

When I use composer require rollbar/rollbar-laravel —no-scripts it installs however it does not work.

Any suggestions? Thank you

koencg commented 5 years ago

I could solve it by using composer require rollbar/rollbar-laravel 2.* --no-scripts but I don't know why. Maybe this can help others upgrading laravel and installing Rollbar.