Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[12.x] Add collection() to Config repository - #56200

Merged
taylorotwell merged 2 commits into
laravel:12.xfrom
KennedyTedesco:config-repository
Jul 2, 2025
Merged

[12.x] Add collection() to Config repository#56200
taylorotwell merged 2 commits into
laravel:12.xfrom
KennedyTedesco:config-repository

Conversation

@KennedyTedesco

Copy link
Copy Markdown
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')

Comment thread src/Illuminate/Support/Facades/Config.php
@taylorotwell
taylorotwell merged commit 525d99e into laravel:12.x Jul 2, 2025
@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