This package allows to load other service providers based on current environment
You can install the package via composer:
composer require soyhuce/service-provider-registrar
Make a ServiceProvider which extend Soyhuce\ServiceProviderRegistrar\ServiceProvider
:
namespace App\Providers;
use Soyhuce\ServiceProviderRegistrar\ServiceProvider;
class RegistrationServiceProvider extends ServiceProvider
{
}
Don't forget to add this ServiceProvider to your config/app.php
file!
For each environment you wish, you have to define which service provider you want to use:
class RegistrationServiceProvider extends ServiceProvider
{
public $local = [
\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class
];
}
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.