Laravel @forelse Directive

As you know, we had to use the @foreach directive to use the foreach loop on the blade side. However, if there is data, we normally need to put it in a control like this to loop it.

@if($users->count() > 0)
    @foreach($users as $user)
        {{ $user->name }}

There are no comments, make the firs comment