Пример #1
0
 public function testResetCurrencies()
 {
     $currencies = Currency::getCurrencies();
     Currency::setCurrencies([]);
     $this->assertEmpty(Currency::getCurrencies());
     Currency::setCurrencies($currencies);
 }
Пример #2
0
 /**
  * Bootstrap the application events.
  *
  * @return void
  */
 public function boot()
 {
     $config = __DIR__ . '/../../config/money.php';
     $this->mergeConfigFrom($config, 'clicknow.money');
     $this->publishes([$config => $this->app->make('path.config') . '/clicknow.money.php'], 'config');
     Money::setLocale($this->app->make('translator')->getLocale());
     Currency::setCurrencies($this->app->make('config')->get('clicknow.money'));
 }