我试图得到“班次”,并得到我所有的记录,但我加入它的订单和运行where on orders on orders by delivery_date这里的"the shift“,它没有擦除任何订单,现在我只需要在订单上设置where,而不影响班次 Shift::leftJoin('mt_plans', 'mt_plans.shift_id', '=', 'shifts.id')
->leftJoin('subscriptions',
如何将此原始SQL查询转换为Laravel雄辩:) a_tables.`id` AS `a_id`,FROM LEFT JOINlaravel.b_tables AS L ON L.`a_tables_id` = `a_id` AND L.user_id=2
LEFT JOINlaravel.c_tables AS I O
嗨,我想知道如何在Laravel 8中完成这个查询,我试着添加了join子句,但不像预期的那样工作,我需要join子句?或者也许还有另外一种方式去做。我搜索其他的例子,但我没有看到任何帮助我。esc.tipo", "esc.xtalla", "esc.fase",
DB::raw("(select anulado from prototipos_p as p where' and p.referencia = esc.ref