I have this query :
SELECT *
FROM `groups`
WHERE `status` = 1
AND `active` != 1
AND (`approved` != 1 OR `approved` IS NULL)
And I try this in query builder but don't know how to make it properly
Here is my query builder :
Group::where([['status', '=', 1], ['active', '!=', 1]])
->where([['approved', '!=', 1]])
->orWhereNull()
->get();