Arr::unwrap
and single
methods
#42205
Unanswered
michael-rubel
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, Laravel Folks!
I always miss these features when building packages around Laravel:
count === 1
but with some beautiful syntax method, for example,single
, orone
.Arr::unwrap
method, to return value from an array if it contains only one key inside.I thought about PRs, but still not sure it is worth an effort and wouldn't be rejected. What do you think?
Beta Was this translation helpful? Give feedback.
All reactions