diff --git a/src/Configs/Factory.php b/src/Configs/Factory.php index 43a3510..60f2cfc 100644 --- a/src/Configs/Factory.php +++ b/src/Configs/Factory.php @@ -13,9 +13,9 @@ public function make() public function getFromConfigFile() { - $configFile = __DIR__ .'/../../../../../../../config/cybersource.php'; + $configFile = config_path('cybersource.php'); - $defaultConfigs = require(__DIR__ . '/../../../config/config.php'); + $defaultConfigs = require(__DIR__.'/../../app/config/cybersource.php'); $userProvidedConfigs = is_file($configFile) ? require($configFile) : []; @@ -27,4 +27,4 @@ public function getFromConfigFile() } -} \ No newline at end of file +}