Answers for "to check laravel eloquent is empty of having data"

PHP
2

laravel check if laravel query is empty

if ($result->first()) { } 
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }
Posted by: Guest on May-18-2020

Code answers related to "to check laravel eloquent is empty of having data"

Browse Popular Code Answers by Language