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

Support any level of nested directories #5

Merged
merged 2 commits into from Sep 13, 2022

Conversation

Riley19280
Copy link
Contributor

TIL php's glob() function does not support globstar (**), and treats it as a single *. This means that the Model finder is only matching php model classes that are one level deep. Based on my research, i can't find anything that would suggest that you can change that. Due to this, I have replaced the glob match with a RecursiveDirectoryIterator that will retrieve model files that are nested any level deep

@freekmurze
Copy link
Member

It seems like the tests are failing for this one. Can you fix them?

@freekmurze freekmurze merged commit 8e71d10 into spatie:main Sep 13, 2022
@freekmurze
Copy link
Member

Thank you!

@Riley19280 Riley19280 deleted the feat/recursive-directories branch September 13, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants