Closed hexus closed 7 years ago
I've also noticed that System\Query::pluck()
implementation prevents the pass through of pluck
.
It behaves differently to Laravel's pluck()
in 5.4, which selects all the values in a column as opposed to selecting a single value from the first row (which value()
is for).
Is this intentional?
No it's not intentionnal, and is certainly a leftover from 'Eloquent\QueryBuilder' the class was forked from, we should remove the 'pluck()' method and let the base query handle this.
Ah, nice! Glad I spotted it. :)
This allows using
->value()
on query builders to retrieve a single column value from the first result of a query.https://laravel.com/docs/5.4/queries#retrieving-results