Skip to content Skip to footer navigation
You are reading the Statamic 6 Alpha docs. πŸ‘€

Console Log Modifier

Debug a variable by dumping its contents to your browser's JavaScript's console via console.log.

fruit:
- apples
- bananas
- bacon
{{ fruit | console_log }}
@php(Statamic::modify($fruit)->consoleLog())
["apples", "banana", "jerky"]