From 2c1d995262f9cbc7f7b6aa3bd67399d97a3589a7 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sun, 28 Jul 2024 23:06:15 +0700 Subject: [PATCH] #19 feat: register scout elastic service provider --- composer.json | 3 +- .../ElasticSearchServiceProvider.php | 29 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 src/Providers/ElasticSearchServiceProvider.php diff --git a/composer.json b/composer.json index c78b7ad..1b66467 100644 --- a/composer.json +++ b/composer.json @@ -62,7 +62,8 @@ "extra": { "laravel": { "providers": [ - "CSlant\\Blog\\Core\\Providers\\BlogCoreServiceProvider" + "CSlant\\Blog\\Core\\Providers\\BlogCoreServiceProvider", + "CSlant\\Blog\\Core\\Providers\\ElasticSearchServiceProvider" ] } }, diff --git a/src/Providers/ElasticSearchServiceProvider.php b/src/Providers/ElasticSearchServiceProvider.php new file mode 100644 index 0000000..34ba15c --- /dev/null +++ b/src/Providers/ElasticSearchServiceProvider.php @@ -0,0 +1,29 @@ +app->register(ElasticSearchServiceProvider::class); + } + + /** + * Bootstrap any application services. + * + * @return void + */ + public function boot(): void + { + // Optional: Code to boot your package services + } +}