laravel @each 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') : '' }}
Example 3: laravel foreach
public function times(){
$times = Times::all();
$bookings = Bookings::all();
return view('/test2')->with('times', $times)->with('bookings', $bookings);
}