Using whereNull and whereNotNull in Eloquent Collection in Laravel
February 26, 2020 — Working with Laravel Eloquent, we always had this ability to check null
fields when builing queries on models. For instance, if you want to check if email_verified_at
field is null
or not, you’d check it like so.