| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | protected function schedule(Schedule $schedule) |
||
| 32 | { |
||
| 33 | |||
| 34 | $now = Carbon::now()->toDateTimeString(); |
||
| 35 | $dateSendEmail = Carbon::create(2018, 03, 20)->toDateTimeString(); |
||
| 36 | |||
| 37 | if($now === $dateSendEmail){ |
||
| 38 | |||
| 39 | $schedule->call(function () { |
||
| 40 | Mail::to('[email protected]')->send(new ScheduledMail()); |
||
| 41 | Mail::to('[email protected]')->send(new ScheduledMail()); |
||
| 42 | |||
| 43 | })->at('16:05'); |
||
| 44 | } |
||
| 59 |