I am new to laravel
I have two columns in one of my table id,role_id,
and I have two arrays
$id = array(1,2,3,4,5,6,....);
$role_id = array(4,5,6,7,8,....);
what I want to do is update the role_id column according to the given id array;
for example I want role_id 4 against id 1,5 against 2
is there any way to do it in laravel
Any help will be appreciated