Skip to content

[12.x] allow passing custom "depth" to files() and directories()#57573

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
browner12:AB-filesystem-cleanup
Oct 29, 2025
Merged

[12.x] allow passing custom "depth" to files() and directories()#57573
taylorotwell merged 1 commit into
laravel:12.xfrom
browner12:AB-filesystem-cleanup

Conversation

@browner12

Copy link
Copy Markdown
Contributor

this change serves 2 purposes:

  • it allows the calling code to pass in an optional custom depth for more control over the desired output.
  • it allows refactoring and deduplication of the allFiles() and allDirectories() methods to defer to the files() and directories() methods, respectively.

this change serves 2 purposes:

- it allows the calling code to pass in an optional custom depth for more control over the desired output.
- it allows refactoring and deduplication of the `allFiles()` and `allDirectories()` methods to defer to the `files()` and `directories()` methods, respectively.
@taylorotwell taylorotwell merged commit 9bf89dc into laravel:12.x Oct 29, 2025
68 checks passed
@browner12 browner12 deleted the AB-filesystem-cleanup branch October 29, 2025 16:02
shaedrich added a commit to shaedrich/framework that referenced this pull request Oct 29, 2025
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