/** * take array and */ private function readyConfig() { $configStore = ['store' => [Setting::get('storeName') => ['merchantId' => Setting::get('merchantId'), 'marketplaceId' => Setting::get('marketplaceId'), 'keyId' => Setting::get('keyId'), 'secretKey' => Setting::get('secretKey'), 'AMAZON_SERVICE_URL' => Setting::get('amazonServiceUrl'), 'authToken' => Setting::get('authToken')]], 'AMAZON_SERVICE_URL' => 'https://mws.amazonservices.com/', 'muteLog' => false]; $config = \App::make('config'); $key = 'amazon-mws'; $config->set($key, $configStore); }
/** * Set up MWS configuration for user and add to config */ private function readyConfig() { //Setting values can also be hardcoded within env. variables and pulled in if persistence and use of LaravelSettings is not needed. $configStore = ['store' => [Setting::get('storeName') => ['merchantId' => Setting::get('merchantId'), 'marketplaceId' => Setting::get('marketplaceId'), 'keyId' => Setting::get('keyId'), 'secretKey' => Setting::get('secretKey'), 'AMAZON_SERVICE_URL' => Setting::get('amazonServiceUrl'), 'authToken' => Setting::get('authToken')]], 'AMAZON_SERVICE_URL' => 'https://mws.amazonservices.com/', 'muteLog' => false]; $config = \App::make('config'); $key = 'amazon-mws'; $config->set($key, $configStore); }