缺少
修改理由:
相关信息:
- 类型:文档文章
- 文章: 查询过滤
- 文档: 《Dcat Admin 中文文档(2.x)》
此投稿已在 4年前 合并。
内容修改:
| Old | New | Differences |
|---|---|---|
| 266 | 266 | $start = $this->input['start'] ?? null; |
| 267 | 267 | $end = $this->input['end'] ?? null; |
| 268 | 268 | |
| 269 | $q->whereHas('goods', function ($q) use ($start | |
| 269 | $q->whereHas('goods', function ($q) use ($start,$end) { | |
| 270 | 270 | if ($start !== null) { |
| 271 | 271 | $q->where('price', '>=', $start); |
| 272 | 272 | } |
关于 LearnKu