public function registerSidebarFactory()
    {
        $this->app->singleton('sidebar.factory', function ($app) {
            return new SidebarFactory($app['sidebars.collection'], $app);
        });

        $this->app->alias('sidebar.factory', SidebarFactory::class);
    }
public function registerSidebarFactory()
    {
        $this->app->singleton('sidebar.factory', function ($app) {
            return new SidebarFactory($app['sidebars.collection'], $app);
        });

        $this->app->alias('sidebar.factory', SidebarFactory::class);
    }
public function registerSidebarFactory ( ) { $ this -> app -> singleton ( 'sidebar.factory' , function ( $ app ) { return new SidebarFactory ( $ app [ 'sidebars.collection' ] , $ app ) ; } ) ; $ this -> app -> alias ( 'sidebar.factory' , SidebarFactory :: class ) ; }
Registers sidebars factory.

@return void
Registers sidebars factory .