laravel 8 blade set variable 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') : '' }}