现在我有以下查询:
$passed = Deployment::where('created_at', '<=', Carbon::now()->subDays(15)->toDateTimeString())->get();
但现在我想在这样的地方添加第二个:WHERE closed_domain == 0
.
但是如何将其添加到当前查询中?我已经尝试过::而且没有成功......
您可以在调用之前继续构建查询get()
.
$passed = Deployment::where('created_at', '<=', Carbon::now()->subDays(15)) ->where('closed_domain', 0) ->where(.....) ->get();