i have a want to update data in a column in the database according to some value in an array.here is an example of the code below
$rmupdate=Room_name::where(['rentalhouse_id'=>2,'id'=>['110','112']])->first();
dd($rmupdate);
$rmupdate->update([
$rmupdate->is_occupied=1,
]);
here i want to fetch all the room names that has an id of both 110 and 112 and also whose rentalhouse_id is 2.i have tried the code above but i get a null response but on the table the room names have data in them.where might i be missing a point.