Blade Tricks

Template tricks and directives that make Blade even more powerful.

Beginner Since 8.x

The @once Blade Directive

Render a block of template content only once per rendering cycle, even inside a loop.

Helpers
Intermediate Since 10.x

The @fragment Blade Directive

Define named fragments in your Blade templates and render only that fragment on demand — useful for partial updates and lazy loading.

HTTP Helpers
Intermediate Since 10.x

The @persist Blade Directive

Keep a DOM element alive across Livewire page navigations — prevent re-rendering of video players, maps, or complex widgets.

Performance Helpers