@@ -34,8 +34,8 @@ |
||
| 34 | 34 | // $schedule->command('inspire') |
| 35 | 35 | // ->hourly(); |
| 36 | 36 | |
| 37 | - if (substr( Carbon::now(), 0, 10 ) === $this->date){ |
|
| 38 | - $schedule->call(function () { |
|
| 37 | + if (substr(Carbon::now(), 0, 10) === $this->date) { |
|
| 38 | + $schedule->call(function() { |
|
| 39 | 39 | Mail::to(User::find(1))->send(new HelloUser()); |
| 40 | 40 | })->dailyAt('07:00'); |
| 41 | 41 | } |