Skip to content

Pluck could have been retrieved as query but how? #1326

Answered by szepeviktor
akulmehta asked this question in Q&A
Discussion options

You must be logged in to vote

How about User::select('name')->pluck('name')->get()->toArray()?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@akulmehta
Comment options

@szepeviktor
Comment options

@akulmehta
Comment options

@eithed
Comment options

Answer selected by szepeviktor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants