Laravel Eloquent Query for Double Entry Journal
I have a table journals having columns transaction_id, type(receipt or payment), debit and credit columns for amount, account_id relation with accounts table the records can be multiple receipt or payment entries, and an opposite entry to record sum of these…