Switch case problem

Hi all,

I have an edit form component used to change a reservation (date, location and time can all be changed). Depending on the values that are changed, some other operations have to be done on the database, and to determine what should be done, I’m using a switch case based on the returned value of an helper function.
Just before the break I redirect to home

session()->flash('message', 'Reservation has been successfully updated.');
return redirect()->to('/home');
break;

What’s happening is that the component performs all the correct logic to modify the reservation, but immediately re-run the switch check with the changed values (causing errors).

So basically it doesn’t redirect and break, but restart the checking again.

What am I doing wrong ??

PS newbie here…

Thanks !!!