src/CommonLocaleServiceProvider.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/locale.php', 'locale'
        );
        $this->app->singleton('command.userh-common-locale.publish-config', function () {
            return new PublishConfigCommand();
        });
        $this->commands(
            'command.userh-common-locale.publish-config'
        );
    }
public function register ( ) { $ this -> mergeConfigFrom ( __DIR__ . '/../config/locale.php' , 'locale' ) ; $ this -> app -> singleton ( 'command.userh-common-locale.publish-config' , function ( ) { return new PublishConfigCommand ( ) ; } ) ; $ this -> commands ( 'command.userh-common-locale.publish-config' ) ; }
Register the service provider.
Register the service provider .