Skip to content Skip to footer navigation

Dump Tag

The dump tag is used for debugging data inside your current view context.

Overview#

This tag is useful for debugging. It will render the raw data of the variables in your current context (page, variable loop, etc).

Dropping it in a template or layout will show you all the data that's been injected into the view layer.

{{ dump }}
<statamic:dump />

Dropping it inside a loop will dump all the data just for that loop context.

{{ gallery }}
{{ dump }}
{{ /gallery }}
@foreach ($gallery as $item)
{{-- Using the Statamic tag --}}
<statamic:dump />
{{-- Using Blade Directives --}}
@dd($item)
@endforeach
Hot Tip!

You can also use the dump modifier to achieve a similar effect.

A troll pointing a teaching stick