Pull method in Laravel Collections #35064
-
In laravel collections, pull method require an key to pull an item from the collection. Shouldnt it pull the last item if a key is not specified? |
Beta Was this translation helpful? Give feedback.
Answered by
selcukcukur
Nov 3, 2020
Replies: 1 comment 3 replies
-
@upeksha1996 This situation can cause a lot of unusual situations. If no key is specified, it is better to return blank. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
glupeksha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@upeksha1996 This situation can cause a lot of unusual situations. If no key is specified, it is better to return blank.