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"]
console_log
ModifierDebug 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"]
Submit improvements, related content, or suggestions through Github.
Betterify this page →