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

Make better config helper #5

Closed
Mohammadreza-73 opened this issue Apr 14, 2023 · 1 comment
Closed

Make better config helper #5

Mohammadreza-73 opened this issue Apr 14, 2023 · 1 comment
Assignees
Labels
feature New feature

Comments

@Mohammadreza-73
Copy link
Owner

Modify config helper function to get whole array or a specific key of array:

config('database');             // get whole array
config('database.host');    // get host key from array
@Mohammadreza-73 Mohammadreza-73 added the feature New feature label Apr 14, 2023
@Mohammadreza-73 Mohammadreza-73 self-assigned this Apr 14, 2023
@Mohammadreza-73
Copy link
Owner Author

Implement config as:

config($name, $key = null);

set second parameter to get array keys.
if second parameter is null return whole config array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

1 participant