i want to update all user records depending on the user id , the user id is repeated more than one time and i want the update function to update all these occurrences here is my try :
App\Models\HistoryCostEstimation::where(['user_id'=>$user_ID])->update(['currency'=>$currenc]);
but this code updates only one occurrence , is there any other way to do the required purpose ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire