skip to Main Content

Substituting variable into raw SQL in Laravel

I have a Laravel controller and here is a piece of my code for the SQL query that I made: $query = <<<SQL SELECT day, date, product1_shift1, product1_shift2, product1_shift3, COALESCE(product1_shift1, 0) + COALESCE(product1_shift2, 0) + COALESCE(product1_shift3, 0) AS total_product1_qty FROM…

VIEW QUESTION
Back To Top
Search