Pluck Modifier
Retrieves the values of a given key
from each item.
games:
-
feeling: love
title: Dominion
-
feeling: love
title: Netrunner
-
feeling: hate
title: Chutes and Ladders
{{ games | pluck('title') }}
<?php
$plucked = Statamic::modify($games)
->pluck('title')
->fetch();
?>
games:
- Dominion
- Netrunner
- Chutes and Ladders
Docs Feedback
Submit improvements, related content, or suggestions through Github.
Betterify this page