@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | public function update($models) |
54 | 54 | { |
55 | 55 | $params = []; |
56 | - $models->each(function ($model) use (&$params) { |
|
56 | + $models->each(function($model) use (&$params) { |
|
57 | 57 | $params['body'][] = [ |
58 | 58 | 'index' => [ |
59 | 59 | '_index' => $this->index, |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | public function delete($models) |
77 | 77 | { |
78 | 78 | $params = []; |
79 | - $models->each(function ($model) use (&$params) { |
|
79 | + $models->each(function($model) use (&$params) { |
|
80 | 80 | $params['body'][] = [ |
81 | 81 | 'delete' => [ |
82 | 82 | '_index' => $this->index, |
@@ -43,7 +43,7 @@ |
||
43 | 43 | __DIR__ . '/config/elasticsearch.php' => config_path('elasticsearch.php'), |
44 | 44 | ]); |
45 | 45 | |
46 | - resolve(EngineManager::class)->extend('elasticsearch', function () { |
|
46 | + resolve(EngineManager::class)->extend('elasticsearch', function() { |
|
47 | 47 | return new ElasticSearchEngine( |
48 | 48 | ElasticSearchBuilder::create()->setHosts(Config::get('elasticsearch.hosts'))->build(), |
49 | 49 | Config::get('elasticsearch.index') |