0
我怎樣才能改變這個SQL語句來查詢口才..雄辯查詢生成器中laravel 5
SELECT * FROM `promotions`
WHERE
(CURDATE()
BETWEEN from_date - INTERVAL 2 DAY AND from_date)
OR
(CURDATE() >= from_date AND CURDATE() <= to_date)
我試着像>>
$start = date("Y-m-d 00:00:00"); //todate
$end = // todate + 2
return $this->model->whereBetween('from_date',[$start,$end])->get();
,但我不知道如何改變這部分>>
OR (CURDATE() >= from_date AND CURDATE() <= to_date)
請給我看看正確的方式..感謝和尊重所有。