Skip to content

Commit

Permalink
[Commit reverted: Refactor: correction in installer commands.]
Browse files Browse the repository at this point in the history
  • Loading branch information
vivek-webkul committed Jan 6, 2024
1 parent 8746c1c commit 7517c81
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ public function run($parameters = [])
DB::table('channels')->delete();

DB::table('currencies')->delete();


$defaultLocale = $parameters['default_locale'] ?? config('app.locale');

$defaultCurrency = $parameters['default_currency'] ?? config('app.currency');

$currencies = $parameters['allowed_currencies'] ?? [$defaultCurrency];
Expand All @@ -49,7 +51,7 @@ public function run($parameters = [])
[
'id' => $key + 1,
'code' => $currency,
'name' => trans('installer::app.seeders.core.currencies.' . $currency, [], $defaultCurrency),
'name' => trans('installer::app.seeders.core.currencies.' . $currency, [], $defaultLocale),
'symbol' => $this->currencySymbols[$currency],
],
]);
Expand Down

0 comments on commit 7517c81

Please sign in to comment.