@@ -261,8 +261,7 @@ |
||
261 | 261 | throw tap(new ModelNotFoundException())->setModel($searchable); |
262 | 262 | } |
263 | 263 | |
264 | - $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : |
|
265 | - $instance->toArray(); |
|
264 | + $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : $instance->toArray(); |
|
266 | 265 | } |
267 | 266 | |
268 | 267 | return $attributes; |