samedi 19 juin 2021

Laravel chunkbyid for joins

When i use chunkById on a Query Builder with joins I am not getting the output

 DB::table('cs')
 ->join('hw','hw.p1', '=', 'cs.awb')
 ->where('cs.dv','hw')
 ->chunkById(100, function ($hw_orders) use (&$hwCount) {
 foreach ($hw_orders as $hwd){
  Log::info('Number ' . $hwd->awb);
 });

I want to know how I could chunk this data with joins. Thank you



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire