@@ -77,7 +77,7 @@ |
||
| 77 | 77 | { |
| 78 | 78 | $index = $this->algolia->initIndex($models->first()->searchableAs()); |
| 79 | 79 | |
| 80 | - $result = $index->deleteObjects($models->map(function ($model) { |
|
| 80 | + $result = $index->deleteObjects($models->map(function($model) { |
|
| 81 | 81 | return ObjectIdEncrypter::encrypt($model); |
| 82 | 82 | })->values()->all()); |
| 83 | 83 | |
@@ -248,8 +248,7 @@ |
||
| 248 | 248 | |
| 249 | 249 | try { |
| 250 | 250 | $instance = @factory($searchable)->make() ?? $searchable::first(); |
| 251 | - $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : |
|
| 252 | - $instance->toArray(); |
|
| 251 | + $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : $instance->toArray(); |
|
| 253 | 252 | } catch (InvalidArgumentException | QueryException $e) { |
| 254 | 253 | } |
| 255 | 254 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | foreach ($searchableFinder->fromCommand($this) as $searchable) { |
| 46 | 46 | $this->output->text(' |