what is forelse in laravel

Solutions on MaxInterview for what is forelse in laravel by the best coders in the world

showing results for - "what is forelse in laravel"
Addison
12 Jan 2020
1ForElse is a ForEach loop, but with extra handling for empty array.
2  
3@forelse ($users as $user)
4    <li>{{ $user->name }}</li>
5@empty
6    <p>No users</p>
7@endforelse
similar questions
queries leading to this page
what is forelse in laravel