protected function registerCurrency()
    {
        $this->app->singleton(Currency::class, function ($app) {
            $repository = new Currency;

            return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']);
        });

        $this->app->alias(Currency::class, 'intl.currency');
    }
protected function registerCurrency()
    {
        $this->app->singleton(Currency::class, function ($app) {
            $repository = new Currency;

            return $repository->setLocale($app['config']['app.locale'])->setFallbackLocale($app['config']['app.fallback_locale']);
        });

        $this->app->alias(Currency::class, 'intl.currency');
    }
protected function registerCurrency ( ) { $ this -> app -> singleton ( Currency :: class , function ( $ app ) { $ repository = new Currency ; return $ repository -> setLocale ( $ app [ 'config' ] [ 'app.locale' ] ) -> setFallbackLocale ( $ app [ 'config' ] [ 'app.fallback_locale' ] ) ; } ) ; $ this -> app -> alias ( Currency :: class , 'intl.currency' ) ; }
Register the currency repository.

@return void
Register the currency repository .