Is there an elegant way to do compare against undefined datetime in Laravel Eloquent ORM?
Person::where('died_at', '0000-00-00 00:00:00')
This does not work, as expected:
Person::whereNull('died_at')
Laravel version is 7.
Is there an elegant way to do compare against undefined datetime in Laravel Eloquent ORM?
Person::where('died_at', '0000-00-00 00:00:00')
This does not work, as expected:
Person::whereNull('died_at')
Laravel version is 7.