how to use switch case in laravel controller