Q:

Eloquent Update function is not updating all records

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 ?
this is the table structure

and this is a sample of the data in the table

A:

Solution:
$user_id = 1;
$records = App\HistoryCostEstimation::where('user_id', $user_id)
                                        ->update(['cost_name' => 'New value']);

Note: The eloquent where clause takes string parameters not an
  array, also make sure your $fillable fields are set. That should do
  the trick.

