Laravel 6 handle switch statement in controller mvc