![php - Converting an array of arrays from Laravel's collection into an object with an array in json - Stack Overflow php - Converting an array of arrays from Laravel's collection into an object with an array in json - Stack Overflow](https://i.stack.imgur.com/6LQXw.png)
php - Converting an array of arrays from Laravel's collection into an object with an array in json - Stack Overflow
Collection's toArray() method does not convert nested objects to arrays when called in a PHPUnit test. · Issue #31841 · laravel/framework · GitHub
![api - How to convert a paginated collection in Laravel so that the response is an array of objects - Stack Overflow api - How to convert a paginated collection in Laravel so that the response is an array of objects - Stack Overflow](https://i.stack.imgur.com/h1SaI.png)