Skip to content

Conversation

@ryanmitchell
Copy link
Contributor

This PR adds support for pluck() on the base eloquent query builder to bring parity with the stache builder.

This allows you to do queries like:

\Statamic\Facades\Entry::query()->pluck('title');

instead of

\Statamic\Facades\Entry::query()->get()->pluck('title');

@jasonvarga jasonvarga merged commit 5b63c4a into statamic:5.x Aug 7, 2025
24 checks passed
@ryanmitchell ryanmitchell deleted the feature/support-pluck-on-eloquent-builder branch August 7, 2025 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants