| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function handle() |
||
| 41 | { |
||
| 42 | $this->visits = Visit::with('user') |
||
| 43 | ->whereBetween('expiration_date', [ |
||
| 44 | Carbon::today()->subDay()->toDateString(), Carbon::today()->addWeek()->toDateString(), |
||
| 45 | ]) |
||
| 46 | ->activeUsers() |
||
| 47 | ->orderBy('expiration_date') |
||
| 48 | ->get(); |
||
| 49 | |||
| 50 | return $this; |
||
| 51 | } |
||
| 52 | |||
| 58 |