Skip to content

Conversation

@jackbayliss
Copy link
Contributor

@jackbayliss jackbayliss commented Dec 19, 2025

This PR adds a MigrationSkipped event that fires when a migration is pending but skipped.

Laravel fires various events for migrations, but not when a pending migration is skipped.

This allows us to track it for monitoring for things such as conditional migration behavior across environments.

When running migrations silently in deployment pipelines, events provide the only way to observe what occurred - so useful for logging tools etc.

12.x add MigrationSkipped event
@github-actions
Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@jackbayliss jackbayliss marked this pull request as ready for review December 19, 2025 09:32
@taylorotwell taylorotwell merged commit 0fc645c into laravel:12.x Dec 19, 2025
70 checks passed
akyrey pushed a commit to akyrey/framework that referenced this pull request Dec 29, 2025
* 12.x add MigrationSkipped event

12.x add MigrationSkipped event

* add a full test to prove the migration name

* cs

* Update MigrationSkipped.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants