check if object is empty laravel code example
Example: laravel check if object empty
@if(!$contacts->isEmpty())
//do something
@else
You dont have contacts
@endif
@if(!$contacts->isEmpty())
//do something
@else
You dont have contacts
@endif