Atualize uma tabela pivô usando eloquente
$user = User::find(1);
$user->roles()->updateExistingPivot($roleId, [
'active' => false,
], false);
//The last param is to not update time updated_at column timestamp.
Make Your Own Project