I have to place some PHP code inside a Laravel 5 blade template. Like below
@foreach ($farmer->tasks as $task) @if ($task->pivot->due_at) < da
Laravel recipes suggest a simple, but effective, way to do it without including the PHP tags:
{{--*/ $var = 'test' /*--}}
{{-- --}} works as a blade comment / and / reverts the effect of comment resulting on
The problem is that is longer than including PHP tags :-(