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

add support for multiple config files and nested config files #1979

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

dcblogdev
Copy link
Collaborator

This PR ads support for multiple root level config files but also nested folders.

for example

config/
    admin/admin.php
    admin.php
    config.php
    user.php

Then to use them config('module.file.name') for example config('books.service.name') to load config/service.php from a module called Books

Usage of the default config.php is unchanged. ie config('module.name') will load the name key from module/config/config.php

@dcblogdev dcblogdev merged commit 0c04e1a into master Nov 16, 2024
7 of 8 checks passed
@dcblogdev dcblogdev deleted the add-multiple-config-support branch November 16, 2024 02:36
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.

1 participant