Using conditions in laravel accessors
To show application_status in result, I'm using DB::raw statement in my query. DB::raw(' CASE WHEN status = 0 THEN "Pending" WHEN status = 1 THEN "Approved" WHEN status = 2 THEN "Declined" END AS application_status' ) How can I convert…