Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel check if get is empty

if ($mentor->first()) { } 
if (!$mentor->isEmpty()) { }
if ($mentor->count()) { }
if (count($mentor)) { }
if ($mentor->isNotEmpty()) { }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #check #empty
ADD COMMENT
Topic
Name
7+1 =