radiate-framework / framework

A WordPress plugin and theme framework
https://radiate-framework.github.io/
MIT License
4 stars 0 forks source link

JsonResource collection doesn't accept collections #114

Closed BenRutlandWeb closed 3 years ago

BenRutlandWeb commented 3 years ago

Describe the bug The collection method only accepts an array

To Reproduce Steps to reproduce the behavior:

  1. Create a resource
  2. Try to collect a Collection
  3. See error

Expected behavior A collection should be able to be passed to the collection method

Additional context https://laravel.com/docs/8.x/eloquent-resources#resource-collections