When using the Spatie\Health\ResultStores\EloquentHealthResultStore result store the latest check results will be written to the database. The advantage of stores results in the database, is that you can build up the history of your results. The downside is that, if your database is down, no results can be written.
In the health config file, the store can be configured in the health_stores key like this:
The results will be written in the health_check_result_history_items table. All field names should be self-explanatory. Using the App\Spatie\Models\HealthCheckResultHistoryItem model, you can easily query all results.
The model uses the Laravel's MassPrunable trait. In the health config file, you can specify the maximum age of a model in the keep_history_for_days key. Don't forget to schedule the model:prune command, as instructed in Laravel's docs. You'll have to explicitly add the model class: