variable in blade laravel code example
Example 1: blade set variable
@php ($i = 1)
Example 2: using get in laravel blade
{{ request()->has('faq') ? request()->get('faq') : '' }}
@php ($i = 1)
{{ request()->has('faq') ? request()->get('faq') : '' }}