Skip to content

Commit 5deb319

Browse files
authored
Update installation-and-setup.md (#364)
Laravel 11 update
1 parent 543d72f commit 5deb319

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

docs/installation-and-setup.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,16 @@ php artisan migrate
170170

171171
After you have performed the basic installation you can check the uptime and ssl certificates of sites using the `monitor:check-uptime` and `monitor:check-certificate` commands. In most cases you'll want to schedule them. We recommend that you run the uptime check every minute and the ssl certificate check daily.
172172

173-
You can schedule the commands, like any other command, in the console Kernel.
173+
You can schedule the commands, like any other command, in the `routes/console.php` file.
174174

175175
```php
176-
// app/Console/Kernel.php
176+
// routes/console.php
177177

178-
protected function schedule(Schedule $schedule)
179-
{
180-
$schedule->command('monitor:check-uptime')->everyMinute();
181-
$schedule->command('monitor:check-certificate')->daily();
182-
}
178+
use Illuminate\Support\Facades\Schedule;
179+
use Spatie\UptimeMonitor\Commands\CheckCertificates;
180+
use Spatie\UptimeMonitor\Commands\CheckUptime;
181+
182+
183+
Schedule::command(CheckUptime::class)->everyMinute();
184+
Schedule::command(CheckCertificates::class)->daily();
183185
```

0 commit comments

Comments
 (0)