现在,我有了以下查询:
$passed = Deployment::where('created_at', '<=', Carbon::now()->subDays(15)->toDateTimeString())->get();但是现在我想添加一个类似于这样的第二步:WHERE closed_domain == 0。
但是如何将其添加到当前查询中呢?我试过::在哪里,但没有成功.。
发布于 2015-12-08 08:58:01
在调用get()之前,可以继续构建查询。
$passed = Deployment::where('created_at', '<=', Carbon::now()->subDays(15))
->where('closed_domain', 0)
->where(.....)
->get();https://stackoverflow.com/questions/34151611
复制相似问题