Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel empty query result

if ($result->first()) { } 
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #empty #query #result
ADD COMMENT
Topic
Name
8+3 =