Describe the bug
Having the same collection ( same resource id ) attached to different keys of another collection will only allow the first occurrence to expand.
Versions
Ray version (you can see this in "About Ray"): 2.7.5
You can use composer show to get the version numbers of:
spatie/ray package version: 1.39.0
spatie/laravel-ray package version (if applicable): 1.33.0
PHP version:
Laravel version (if applicable): 8.1 and 8.2
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
Describe the bug Having the same collection ( same resource id ) attached to different keys of another collection will only allow the first occurrence to expand.
Versions Ray version (you can see this in "About Ray"): 2.7.5
You can use
composer show
to get the version numbers of:PHP version: Laravel version (if applicable): 8.1 and 8.2
To Reproduce Steps to reproduce the behavior:
$collection
as valueentry_1
will be expandable/inspectableExpected behavior I would expect to be able to expand all instances of the collection.
Additional context This doesn't happen in case you try to ray the collection twice in the same ray call like this:
ray($collect, $collect);
Screenshots
Desktop (please complete the following information):