diff --git a/src/AffiliateNetworkServiceProvider.php b/src/AffiliateNetworkServiceProvider.php index a729b82..c6e7bb0 100644 --- a/src/AffiliateNetworkServiceProvider.php +++ b/src/AffiliateNetworkServiceProvider.php @@ -34,8 +34,7 @@ public function boot() */ public function register() { - - $this->app['NetworkManager']=$this->app->share(function ($app) { + $this->app->singleton(Connection::class, function ($app) { return new NetworkManager(); }); $this->app->alias('NetworkManager', NetworkManager::class);