【发布时间】:2019-02-19 04:25:56
【问题描述】:
我该怎么做
"SELECT * FROM table WHERE quote_id = ".$id." AND status = 7 OR status = 8"
使用 Laravel 查询。
到目前为止,我尝试做的是:
Test::where("quote_id", $id)->whereRaw("booking_status_id = 7 OR booking_status_id = 8")->get();
【问题讨论】:
-
Test::where("quote_id", $id)->->whereIn('booking_status_id', [7,8])->get();