diff --git a/src/Illuminate/Http/Resources/Json/JsonResource.php b/src/Illuminate/Http/Resources/Json/JsonResource.php index c81e81c069d5..8e217220680f 100644 --- a/src/Illuminate/Http/Resources/Json/JsonResource.php +++ b/src/Illuminate/Http/Resources/Json/JsonResource.php @@ -93,7 +93,7 @@ public function resolve($request = null) if (is_array($data)) { $data = $data; - } elseif ($data instanceof Arrayable || $data instanceof Collection) { + } elseif ($data instanceof Arrayable) { $data = $data->toArray(); } elseif ($data instanceof JsonSerializable) { $data = $data->jsonSerialize();