how to check returned data is collection or not in laravel code example
Example: laravel check if query builder is empty
@if ($query === null)
{
<h4 style="text-transform: lowercase;">no results for: #{{ $query }}</h4>
}
@else
{
<h4 style="text-transform: lowercase;">results for: #{{ $query }}</h4>
}
@endif