how to echo variable in blade in if else code example Example: using get in laravel blade {{ request()->has('faq') ? request()->get('faq') : '' }}