Skip to content

Commit

Permalink
Merge pull request #229 from arnebr/patch-1
Browse files Browse the repository at this point in the history
Update installation-setup.md to move schedule command to route/console
  • Loading branch information
freekmurze authored May 13, 2024
2 parents f16d92c + 2990405 commit 971b330
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/installation-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ These steps are not necessary when using the `JsonFileResultStore`.
If you want to let your application send notifications when something is wrong, you should schedule the `RunHealthChecksCommand` to run every minute.

```php
// in app/Console/Kernel.php
// in route/console.php
use Illuminate\Support\Facades\Schedule;

protected function schedule(Schedule $schedule)
{
$schedule->command(\Spatie\Health\Commands\RunHealthChecksCommand::class)->everyMinute();
}
Schedule::command(\Spatie\Health\Commands\RunHealthChecksCommand::class)->everyMinute();
```

## Running the checks by sending HTTP requests
Expand Down

0 comments on commit 971b330

Please sign in to comment.