Skip to content
Advertisement

Tag: where-in

Using Laravel’s WhereIn to search multiple tables

I have 3 SQL tables. clients events client_events Because a client can have multiple events, I made the third table to show those relationships. I am using the following code to retrieve all of the clients that have the have a record matching this event, but it is only returning 1 record when there are multiple. What am I overlooking?

Advertisement