Answers for "check if column is null eloquent"

PHP
2

check if value is not null in db laravel

Model::whereNotNull('sent_at')
Posted by: Guest on July-16-2020
0

how to check if eloquent result is empty

Note:- Credit for this result goes to Alberto Peripolli. Copied from his Grepper.
if ($result->first()) { } 
if (!$result->isEmpty()) { }
if ($result->count()) { }
if (count($result)) { }
Posted by: Guest on September-05-2020

Code answers related to "check if column is null eloquent"

Browse Popular Code Answers by Language