Sometimes you need to use some packages only in your local environment, like for debug purposes. You can include service providers in your local configuration file app/config/local/app.php. You have to worry about indexes since if you just paste service provider, it will overwrite one with same index in original configuration.
<?php return [
'providers' => [
1000 => 'My\Repo\ServiceProvider',
1001 => 'My\Second\Repo\ServiceProvider',
],
];