Answers for "how to check object empty or not in laravel"

PHP
0

laravel check if object empty

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

laravel check if object is empty

// Check if object is empty
$data = [];
if(blank($data)){
// This object is empty           
}
Posted by: Guest on August-02-2021

Code answers related to "how to check object empty or not in laravel"

Browse Popular Code Answers by Language