| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function register(): void |
||
| 17 | { |
||
| 18 | $this->app->bind(Client::class, function () { |
||
| 19 | return ClientBuilder::create()->setHosts([config('elasticsearch.host')])->build(); |
||
| 20 | }); |
||
| 21 | |||
| 22 | $this->publishes([ |
||
| 23 | __DIR__.'/../config/elasticsearch.php' => config_path('elasticsearch.php'), |
||
| 24 | ], 'config'); |
||
| 25 | } |
||
| 35 |