bugsnag / bugsnag-laravel

BugSnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
https://docs.bugsnag.com/platforms/php/laravel/
MIT License
874 stars 129 forks source link

Implement Laravel's Automatic Package Discovery #531

Closed elegasoft closed 8 months ago

elegasoft commented 8 months ago

Updates compose.json to use the Laravel Package Discovery feature eliminating the need to manually add the BugSnagServiceProvider and/or Facade to their respective arrays in config/app.php. You should also change the documentation regarding the onboard/installation process for Laravel apps.

Goal

Reduces the onboarding process to a near zero config setup

Design

Laravel has allowed package discovery since v5.5 released in August 2017.

Changeset

composer.json extras/laravel added

Testing

No tests necessary to implement this change.

GrahamCampbell commented 8 months ago

The package discovery was intentionally never implemented, because the bugsnag service provider needs to be registered in a specific order.

GrahamCampbell commented 8 months ago

Thus, package discovery is not suitable, and this PR should not be merged.