diff --git a/app/Providers/PluginServiceProvider.php b/app/Providers/PluginServiceProvider.php index 3dbaea47..71b890f7 100644 --- a/app/Providers/PluginServiceProvider.php +++ b/app/Providers/PluginServiceProvider.php @@ -9,7 +9,10 @@ class PluginServiceProvider extends ServiceProvider { public function register() { - $this->app->singleton('plugins', PluginManager::class); + $this->app->singleton(PluginManager::class); + $this->app->singleton('plugins', function ($app) { + return $app->make(PluginManager::class); + }); } public function boot(PluginManager $plugins)