I have this init of query in my model:
$query = Mymodel::where('is_active', 1);
i use it to get different result:
$result1 = $query->where('stat', null)->count();
$result2 = $query->where('stat', '!=', null)->count();
i have 4 rows in my database, 2 of them have stat null and 2 is not null; so i expect that $result1 and $result2 value are 2; but i got that $result1 is 2 and $result2 is 0;
as if the $result2 query has the 2 conditions null and not null;