Answers for "how to check if an object is not null or empty in laravel blade"

PHP
3

laravel check if object empty

@if(!$contacts->isEmpty())
//do something
@else
You dont have contacts
@endif
Posted by: Guest on July-13-2020
1

laravel 8 check if null or empty

if(is_null($value) || empty($value)){dd('Is null or empty');}else{dd('Is NOT NULL OR EMPTY');}
Posted by: Guest on October-28-2021

Code answers related to "how to check if an object is not null or empty in laravel blade"

Browse Popular Code Answers by Language