Skip to content

Conversation

@KennedyTedesco
Copy link
Contributor

I'm constantly seeing a pattern where I use collect(Config::array('my_file.my_key')), which is totally fine.

But, what about improving the developer experience by adding a collection() method?

Config::collection('my_file.my_key')

@taylorotwell taylorotwell merged commit 525d99e into laravel:12.x Jul 2, 2025
60 checks passed
@KennedyTedesco KennedyTedesco deleted the config-repository branch July 2, 2025 23:03
mohammad-fouladgar pushed a commit to mohammad-fouladgar/framework that referenced this pull request Jul 22, 2025
* [12.x] Add `collection()` to Config repository

* Update Repository.php

---------

Co-authored-by: Taylor Otwell <[email protected]>
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.

3 participants