laravel DB object is null 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