Download the PHP package illuma-law/healthcheck-migration without Composer
On this page you can find all versions of the php package illuma-law/healthcheck-migration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download illuma-law/healthcheck-migration
More information about illuma-law/healthcheck-migration
Files in illuma-law/healthcheck-migration
Package healthcheck-migration
Short Description Focused migration backlog health check for Spatie's Laravel Health package.
License MIT
Homepage https://github.com/eloquage/healthcheck-migration
Informations about the package healthcheck-migration
Healthcheck Migration for Laravel
A Spatie Laravel Health check that lists pending database migrations and reports whether Artisan could read migration status.
Requirements
- PHP 8.3 or later
- Laravel 12 or 13
spatie/laravel-health1.39 or later
Installation
Laravel discovers the service provider automatically. To customize whether pending migrations warn or fail, publish the configuration:
By default, pending migrations produce a warning. Set HEALTH_MIGRATION_REQUIRED=true to make a pending backlog fail the check. If Laravel cannot read migration status, the check always fails.
Usage
Register the check in your health service provider:
The result includes pending_count and up to eight pending migration rows in its metadata. No pending migrations returns OK, pending migrations return Warning by default or Failed when required, and an Artisan/database error returns Failed.
Testing
License
MIT. See LICENSE.md.
All versions of healthcheck-migration with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^12.0||^13.0
illuminate/database Version ^12.0||^13.0
illuminate/support Version ^12.0||^13.0
spatie/laravel-health Version ^1.39