not empty in laravel controller 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