mardi 29 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]);`       


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3mWXF7F
via IFTTT

Aucun commentaire:

Enregistrer un commentaire