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

[12.x] Dont stop pruning if pruning one model fails #55237

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

gdebrauwer
Copy link
Contributor

When you run model:prune command and an exception occurs during the pruning process of a single model, than the entire command will fail. I had this issue recently in a project. That meant no models were being pruned until I fixed the bug that prevented the pruning of a single model.

This PR fixes that. The model:prune command will skip the models that could not be pruned and report the exceptions that occurred when pruning those models.

@taylorotwell taylorotwell merged commit c420ccb into laravel:12.x Apr 1, 2025
40 of 41 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.

2 participants