#Better way to check if Database Row is filled than to use is_null?

1 messages · Page 1 of 1 (latest)

meager crater
#

I currently use this code to check if all database Rows i want to use are filled

<p>Nothing</p>
@else
<p>Display Content</p>
@endif

Is there a better way to do this?

glossy valley
#

What about

    @if ($drugs !== null) 
    
    @else
        <p>Nothing</p>
    @endif
meager crater