Skip to content

Fallback to Laravel default config #3

Closed
@uyab

Description

@uyab

Hi there, would you like to add functionality so that if key not exist and I don't provide default value, it will fallback to default Laravel config? Maybe it can configureable via config file too ('fallback' => true/false).

Sample:

Settings::get('mail.driver'); // if mail.driver not exist, than the value from config/mail.php will returned

With this functionality, I can provide something like "Reset To Default" :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions