Skip to content

Commit c22edf7

Browse files
Merge pull request #70 from dotartisan/master
currencies or array
2 parents df99d0f + 9c78f4e commit c22edf7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Provider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public function boot(): void
2222
], 'money');
2323

2424
Money::setLocale($this->app->make('translator')->getLocale());
25-
Currency::setCurrencies($this->app->make('config')->get('money'));
25+
$currencies = $this->app->make('config')->get('money');
26+
Currency::setCurrencies($currencies ?? []);
2627

2728
$this->registerBladeDirectives();
2829
$this->registerBladeComponents();

0 commit comments

Comments
 (0)