Publish Bugsnag's Laravel Configuration Only

If you follow the instructions to customize the configuration of Bugsnag’s Laravel package, they’ll tell you to run vendor:publish. But this is not what I want.

This may actually publish more things than just their package’s details.

Instead, you can easily limit this to their configuration only by targeting their service provider with the following command:

php artisan vendor:publish --provider="Bugsnag\BugsnagLaravel\BugsnagServiceProvider"

Now, it will only publish the config/bugnsag.php file.

Return to All Posts