add config service laravel code example Example: laravel set config config()->set('config.path', $value);