erjanmx/laravel-migrate-check
migrate:status). No reinvention of core logic.migrate:status).--force or transactional checks in CI.migrate:fresh in staging.--pretend).migrate:reset vs. manual fixes)run: php artisan migrate:check (fail-fast).artifacts:when:on_failure to capture logs if the check fails.set +e to handle exit codes.Job or InitContainer.command: php artisan migrate:check in a shell module.$?) to conditionally run other commands.Artisan::call('migrate:check') in custom scripts.migrate:check in PR templates).--force flag) for critical deployments.database/migrations.migrate:check invocations for debugging.migrate:check before any database writes (e.g., schema changes).migrate:check concurrently with migrate commands (risk of race conditions).migrate:check in deployment artifacts for auditing.composer.json to avoid unexpected breaking changes.migrate:fresh --env=production.storage/logs/laravel.log).php artisan migrate:check --verbose.migrate:check failures, including:
migrate:status).migrate:check.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Pending migrations in production | Deployment blocked | Automated rollback or manual migrate:run. |
| False positive (no pending migrations) | Unnecessary alerts | Validate with migrate:status in logs. |
| Database connection issues | Check fails, deployment halted | Retry with exponential backoff. |
| Race condition (concurrent migrations) | Inconsistent state | Use --force sparingly or implement locks. |
| Package compatibility issues | Command fails silently | Test in staging; pin package version. |
migrate:check passes."migrate:check in CI.How can I help you explore Laravel packages today?