Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AdeMike's avatar

Laravel Database Query

I need a little help with a solution.... I have two tables , one for students, one for payments... now i want to fetch list of debtors in the school.... , on the payment table, there is a student_id , so every student that has paid will have their ID recorded on the payment table...…

Now, i want to do something like , if student id is not on the payment table, fetch data, how do i do this in Laravel....

0 likes
1 reply

Please or to participate in this conversation.