laravel blade optional else code example
Example 1: laravel 5.4 forelse
@forelse ($users as $user)
<li>{{ $user->name }}</li>
@empty
<p>No users</p>
@endforelse
Example 2: using get in laravel blade
{{ request()->has('faq') ? request()->get('faq') : '' }}