Laravel @php Directive

We use this directive to run php code inside our views.

@php
$i = 5;
@endphp

You can also use it for your single line operations as follows;

@php($i = 5)
Comments

There are no comments, make the firs comment