Skip to content

Commit fdca65e

Browse files
Fix iso currencies path (#174)
1 parent bf0772f commit fdca65e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

config/config.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
'defaultCurrency' => config('app.currency', 'USD'),
1111
'defaultFormatter' => null,
1212
'defaultSerializer' => null,
13-
'isoCurrenciesPath' => __DIR__.'/../vendor/moneyphp/money/resources/currency.php',
13+
'isoCurrenciesPath' => is_dir(__DIR__.'/../vendor')
14+
? __DIR__.'/../vendor/moneyphp/money/resources/currency.php'
15+
: __DIR__.'/../../../moneyphp/money/resources/currency.php',
1416
'currencies' => [
1517
'iso' => 'all',
1618
'bitcoin' => 'all',

0 commit comments

Comments
 (0)