You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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've also run php artisan package:discover after the update to composer.json and the package is correctly not present in Discovered 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?
The text was updated successfully, but these errors were encountered:
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
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?
The text was updated successfully, but these errors were encountered: