Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

This course is the most refreshing take on teaching design that I've come across.

— Mikaël Sévigny, Developer

Dump Tag

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

Overview

This tag is useful for debugging. It will stop execution of the page and 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.

Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →