I wonder if the service should be registered as singleton.
The current $this->app->bind doesn't seem to work for me, the currency got reset to null in the service.
public function registerCurrency()
{
$this->app->singleton('currency', function ($app) {
$config = $app->config->get('currency', []);
return new Currency($config, $app['cache']);
});
}
I wonder if the service should be registered as singleton.
The current
$this->app->bind
doesn't seem to work for me, the currency got reset to null in the service.