Skip to content

Commit

Permalink
chore: use laravel config to retrieve settings in V5 config handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisdom Ebong authored and tuxpiper committed Nov 30, 2023
1 parent 723aeef commit 12ab730
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ protected function getDefaults($group)
// since we're now using it as a file name
$this->verifyGroup($group);

// @todo add them to config!
$file = __DIR__ . "/../../../.." . '/V3/Repository/Config/' . $group . '.php';
if (file_exists($file)) {
return require $file;
$setting = config('settings.' . $group);
if (is_array($setting)) {
return $setting;
}

return [];
}

Expand Down

0 comments on commit 12ab730

Please sign in to comment.