Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel check if laravel query is empty

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