Mysql – Run sql raw queries with Laravel 10
I have a small query to run in my controller, it works fine in MySQL Workbench SELECT subprocess_id, MAX(CASE WHEN step_no = '1' THEN s_name END) AS first_step, MAX(CASE WHEN step_no = '2' THEN s_name END) AS second_step, MAX(CASE WHEN…