Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check empty laravel blade

 @empty($products)
        <p class="bg-danger text-white p-1">product</p>
@else
        <p class="bg-danger text-white p-1">no product</p>
 @endempty
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #empty #laravel #blade
ADD COMMENT
Topic
Name
1+3 =