Ларавел проверьте, пуст объект
@if(!$contacts->isEmpty())
//do something
@else
You dont have contacts
@endif
Xfantasia
@if(!$contacts->isEmpty())
//do something
@else
You dont have contacts
@endif
// Check if object is empty
$data = [];
if(blank($data)){
// This object is empty
}