Support the ongoing development of Laravel.io →
Database Eloquent

I'm trying to achieve this:

->join( 'table_a', function( $join ) use( $ids) { $join ->on( 'table_b.id', '=', 'table_a.join_id' ) ->whereRaw( 'table_a.join_id IN ( implode( ',', $ids ) )' ) ; } )

The problem is there is no whereRaw or whereIn in the JoinClause class.

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

nhusby nhusby Joined 5 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.