Setzen Sie den Konfigurationsschlüssel Dynamic Laravel

// Change service config parameters at runtime  laravel

You can set config values dynamically at runtime with config() helper:

config(['services.mailgun' => $arrayWithNewSettings]);


// call method in config laravel to set desiered key
Excited Elephant