Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | app(EngineManager::class)->extend('solr', function ($app) { |
||
17 | $config = [ |
||
18 | 'endpoint' => [ |
||
19 | 'default' => [ |
||
20 | 'host' => config('scout.solr.host'), |
||
21 | 'port' => config('scout.solr.port'), |
||
22 | 'path' => config('scout.solr.path'), |
||
23 | 'core' => config('scout.solr.core'), |
||
24 | ], |
||
25 | ], |
||
26 | ]; |
||
27 | |||
28 | return new SolrEngine(new Client($config)); |
||
29 | }); |
||
32 |