Skip to content
Advertisement

How to Use WhereIn Query in Laravel 8

Controller

JavaScript

I want to display data from BankSettlement based on konfirmasi_id. Here I try to use WhereIn Query like this, but still error “Property [id] does not exist on this collection instance.”.

konfirmasi variable

$konfirmasi has data like the image above.

What is the correct way to display data from BankSettlement based on konfirmasi_id ? Thankyou

Advertisement

Answer

Try this changes:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement