Closed denitsa-md closed 5 years ago
Hi denitsa-cm,
We'll get one of our library maintainers to take a look at your question and respond soon.
@ArturMoczulski any update on this?
This turned out to be an easy fix. The documentation just needs to be more explicit if you're copy pasting from the instructions. To resolve, just remove Rollbar\Laravel\RollbarServiceProvider::class,
from your providers array in config/app.php
Then, conditionally load the provider in your AppServiceProvider.
As we can see here, Laravel will attempt to register every service provider in the array in config/app.php
Hope this helps!
Great! Thanks @kedarv I'll amend the docs right now
I want to disable auto-discovery and register the service provider manually since I don't want rollbar on development. I tried doing it but to no avail.
I read the docs here https://docs.rollbar.com/docs/laravel#section-installation.
I have the following entry in my
composer.json
I have the following in my
AppServiceProvider:register()
:I have version:
I've also run
php artisan package:discover
after the update to composer.json and the package is correctly not present inDiscovered package:
lines that are generated from the command.My temporary solution is to remove the
ROLLBAR_TOKEN
from my local.env
file.Is there something I'm missing?