Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x] Move dispatching of DatabaseRefreshed event to fire before seeders are run #35091

Merged
merged 1 commit into from
Nov 4, 2020

Conversation

carestad
Copy link
Contributor

@carestad carestad commented Nov 4, 2020

This is a small patch based of the nice work done in #34952.

The DatabaseRefreshed event is very handy in terms of triggering maintenance tasks etc. after running migrate:fresh or migrate:refresh, but right now there is a difference in behaviour depending on if you run artisan migrate:fresh --seed or artisan migrate:fresh && artisan db:seed. This PR just moves the dispatching so it is done before the seeding.

Tests from #34952 should still apply here.

@taylorotwell taylorotwell merged commit 8fa5c86 into laravel:8.x Nov 4, 2020
@carestad carestad deleted the fix/migrate-fresh-event-move branch November 4, 2020 16:25
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