From d91c49eb9682a4b3674d17dbabc1e9665dae5aff Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Tue, 16 Mar 2021 18:04:48 +0100 Subject: [PATCH] Move booting of services --- src/ScoutServiceProvider.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ScoutServiceProvider.php b/src/ScoutServiceProvider.php index 18b8dc90..a2415ba6 100644 --- a/src/ScoutServiceProvider.php +++ b/src/ScoutServiceProvider.php @@ -20,7 +20,15 @@ public function register() $this->app->singleton(EngineManager::class, function ($app) { return new EngineManager($app); }); + } + /** + * Bootstrap any application services. + * + * @return void + */ + public function boot() + { if ($this->app->runningInConsole()) { $this->commands([ ImportCommand::class,