Answers for "how to know if object is empty 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 know if object is empty laravel"

Browse Popular Code Answers by Language