Answers for "how to know if result of query is not empty laravel eloquent"

PHP
0

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
Posted by: Guest on November-22-2020

Code answers related to "how to know if result of query is not empty laravel eloquent"

Browse Popular Code Answers by Language