Hi,
Use DB:raw like this: DB::table( DB::raw('TABLENAME FORCE INDEX (PRIMARY)') )
Replace TABLENAME with your table And PRIMARY in case you want to force another index.
Cheers.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community