Skip to content

Conversation

@crynobone
Copy link
Member

Add the moment both DatabaseMigrations and RefreshDatabase trait uses $this->artisan('migrate:fresh', $this->migrateFreshUsing()); but only RefreshDatabase uses beforeRefreshDatabase() and afterRefreshDatabase().

I believe we should streamline the usage to make it easier to toggle between the two traits depending on requirements.

Use available method from `RefreshDatabase::afterRefreshingDatabase()`

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@taylorotwell taylorotwell merged commit 1e03a4a into 10.x Nov 28, 2023
@taylorotwell taylorotwell deleted the test-database-migration-event branch November 28, 2023 15:22
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.

3 participants