What is "laravel-blade"

Blade Template Engine is part of the Laravel PHP framework. Blade allows you to use a discrete syntax to write PHP control structures and display the data.

Examples

Variable replacement and function call

Hello, {{{ $name }}}.   
The current UNIX timestamp is {{{ time() }}}.

Conditional structures

@if (count($records) === 1)
    I have one record!
@elseif (count($records) > 1)
    I have multiple records!
@else
    I don't have any records!
@endif

@unless (Auth::check())
    You are not signed in.
@endunless

Loops (or loops, or loops)

@for ($i = 0; $i < 10; $i++)
    The current value is {{ $i }}
@endfor

@foreach ($users as $user)
    <p>This is user {{ $user->id }}</p>
@endforeach

@while (true)
    <p>I'm looping forever.</p>
@endwhile

Tag use

Use this tag for questions about problems with Blade syntax and usage.

References