diff --git a/src/FeedsServiceProvider.php b/src/FeedsServiceProvider.php index 6c3237f..35f1936 100644 --- a/src/FeedsServiceProvider.php +++ b/src/FeedsServiceProvider.php @@ -30,7 +30,7 @@ public function boot() */ public function register() { - $this->app->singleton('Feeds', function () { + $this->app->singleton(FeedsFactory::class, function () { $config = config('feeds'); if (! $config) { @@ -39,6 +39,7 @@ public function register() return new FeedsFactory($config); }); + $this->app->alias(FeedsFactory::class, 'Feeds'); } /**