blade set variable

PHP
@php ($i = 1)

Source

Also in PHP: