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] Only look for files ending with .php in model:prune #38975

Merged
merged 1 commit into from
Sep 27, 2021
Merged

[8.x] Only look for files ending with .php in model:prune #38975

merged 1 commit into from
Sep 27, 2021

Conversation

Jubeki
Copy link
Contributor

@Jubeki Jubeki commented Sep 27, 2021

Currently php artisan model:prune will take a look at all files in the model directory.
It will throw an error if you have a file other than a php file there (e.g. readme.md)

With this PR only php files will be looked at in php artisan model:prune

Fixes #38963.

@Jubeki Jubeki changed the title Only look for files ending with .php in model:prune [8.x] Only look for files ending with .php in model:prune Sep 27, 2021
@taylorotwell taylorotwell merged commit 14e959c into laravel:8.x Sep 27, 2021
@Jubeki Jubeki deleted the fix-model-prune branch September 27, 2021 15:21
victorvilella pushed a commit to cdsistemas/framework that referenced this pull request Oct 12, 2021
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.

[8.x] Using php artisan model:prune fails with \ErrorException
2 participants