Skip to content

Commit

Permalink
#19 feat: register scout elastic service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Jul 28, 2024
1 parent 3e0c5c4 commit 2c1d995
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"extra": {
"laravel": {
"providers": [
"CSlant\\Blog\\Core\\Providers\\BlogCoreServiceProvider"
"CSlant\\Blog\\Core\\Providers\\BlogCoreServiceProvider",
"CSlant\\Blog\\Core\\Providers\\ElasticSearchServiceProvider"
]
}
},
Expand Down
29 changes: 29 additions & 0 deletions src/Providers/ElasticSearchServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace CSlant\Blog\Core\Providers;

use Illuminate\Support\ServiceProvider;
use Matchish\ScoutElasticSearch\ElasticSearchServiceProvider as ScoutElasticSearchServiceProvider;

class ElasticSearchServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register(): void
{
$this->app->register(ElasticSearchServiceProvider::class);
}

/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(): void
{
// Optional: Code to boot your package services
}
}

0 comments on commit 2c1d995

Please sign in to comment.