diff --git a/src/Support/helpers.php b/src/Support/helpers.php index e5239ce..e7c6426 100644 --- a/src/Support/helpers.php +++ b/src/Support/helpers.php @@ -51,19 +51,11 @@ function google_report_fields($session = null) */ function e_ads_config() { - if(function_exists('config_path')) - { - if(file_exists(config_path('google-ads.php'))) - { - $configuration = include(config_path('google-ads.php')); - - return $configuration; - } + if (function_exists('config')) { + return config('google-ads'); } - $configuration = include(__DIR__ . '/../Config/config.php'); - - return $configuration; + return include(__DIR__ . '/../Config/config.php'); } /** @@ -94,4 +86,4 @@ function e_config_oauth() $config = e_ads_config(); return $config['oAuth2']; -} \ No newline at end of file +}