Answers for "laravel blade check null or empty"

PHP
0

check null in laravel blade

@if(is_null($variable)
Posted by: Guest on May-23-2021
0

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
Posted by: Guest on April-05-2021

Browse Popular Code Answers by Language