I've been trying to convert a raw sql query to a Laravel Eloquent ORM query and I'm stuck.
SELECT *
FROM transaction_history
WHERE type = 'debit'
AND
(
description not in ('Premium Membership Balance Top Up', 'Sign Up Bonus')
OR
description in ('Premium Membership Balance Top Up', 'Sign Up Bonus') and extra_details is not null
)
I just started working on a Laravel project a couple weeks ago..my brain cells have exceeded their capacity by this time of day...and I have no idea where to even start. Help would be much appreciated.