| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function ongoingPaymentsWithBoostBenefit() |
||
| 40 | { |
||
| 41 | return $this |
||
| 42 | ->model |
||
| 43 | ->select(['days', 'job_id', 'ends_at']) |
||
| 44 | ->where('ends_at', '>', Carbon::now()) |
||
| 45 | ->with(['job' => function (BelongsTo $builder) { |
||
| 46 | // shouldn't laravel do this for us? anyway, no deleted offers! |
||
| 47 | return $builder->whereNull('deleted_at')->where('is_boost', true); |
||
| 48 | }]) |
||
| 49 | ->get(); |
||
| 50 | } |
||
| 51 | |||
| 69 |