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

[10.x] Add before/after database truncation methods to DatabaseTruncation trait #48345

Merged
merged 1 commit into from Sep 11, 2023

Conversation

cwilby
Copy link
Contributor

@cwilby cwilby commented Sep 9, 2023

This PR adds two overridable methods to the DatabaseTruncation trait, that are called before and after database truncation is performed.

This is useful when faking a facade after the application is initialized and before database migrations are performed.

@taylorotwell taylorotwell merged commit ba44e0b into laravel:10.x Sep 11, 2023
19 checks passed
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.

None yet

2 participants