lundi 28 décembre 2020

In Laravel 5 Left Join Donot Update Row in Database

I have used Below Query to update column in database but it do not update column but when I remove join then it update database.

`$userrequestforcasecopy=DB::table('user')      
  -> leftJoin('token','user.id','=','token.request_id')     
  ->where('user.id',$rowId)   
  ->update(['approved_status'=> 2]);`       


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire