Laravel @empty Directive

You can use this directive to check if the value of the variable is null. Normally we check without using the directive like this:

@if(empty($users))
// code
@endif

However, with the directive, we can write it more cleanly as:

@empty($users)
// code
@endempty
Comments

There are no comments, make the firs comment