Laravel проверьте, пуст ли Laravel запрос
if ($result->first()) { }
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }
Alberto Peripolli
if ($result->first()) { }
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }
@if ($query === null)
{
<h4 style="text-transform: lowercase;">no results for: #{{ $query }}</h4>
}
@else
{
<h4 style="text-transform: lowercase;">results for: #{{ $query }}</h4>
}
@endif