src/ServiceProvider.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register(): void
    {
        $this->mergeConfigFrom(__DIR__.'/../config/settings.php', 'settings');
        $this->app->singleton('settings', function ($app) {
            return new SettingsManager($app);
        });
        $this->app->singleton('settings.store', function ($app) {
            return $app['settings']->store();
        });
        $this->addAliases();
    }
public function register ( ) : void { $ this -> mergeConfigFrom ( __DIR__ . '/../config/settings.php' , 'settings' ) ; $ this -> app -> singleton ( 'settings' , function ( $ app ) { return new SettingsManager ( $ app ) ; } ) ; $ this -> app -> singleton ( 'settings.store' , function ( $ app ) { return $ app [ 'settings' ] -> store ( ) ; } ) ; $ this -> addAliases ( ) ; }
Register the service provider.
Register the service provider .