Laravel Blade

Show a section in a template


Begin a section


End a section


End a section and yield

@include('', array('key' => 'value'));
@choice('', 1);

forelse 4.2 feature

@forelse($users as $user)

Echo content

{{ $var }}

Echo escaped content

{{{ $var }}}

Echo unescaped content; 5.0 feature

{!! $var !!}
{{-- Blade Comment --}}

Echoing Data After Checking For Existence

{{{ $name or 'Default' }}}

Displaying Raw Text With Curly Braces

@{{ This will not be processed by Blade }}

Leave a Reply

Your email address will not be published. Required fields are marked *