Eloquent/Collection: Call to a member function getKey() on string #43016
Unanswered
LastDragon-ru
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The following code works fine when collection contains models but will fail if
Collection
is empty :Maybe
map()
it should return base collection if empty?framework/src/Illuminate/Database/Eloquent/Collection.php
Lines 361 to 363 in 95ce178
PS: Laravel v9.17.0
Beta Was this translation helpful? Give feedback.
All reactions