protected function registerViewComposers()
    {
        $this->app->extend('view', function (Factory $view) {
            $view->composer('fluxbb::layout.main', 'FluxBB\View\AlertsComposer');
            $view->composer('fluxbb::layout.main', 'FluxBB\View\GlobalsComposer');
            $view->composer('fluxbb::admin.layout.main', 'FluxBB\View\GlobalsComposer');

            return $view;
        });
    }
protected function registerViewComposers()
    {
        $this->app->extend('view', function (Factory $view) {
            $view->composer('fluxbb::layout.main', 'FluxBB\View\AlertsComposer');
            $view->composer('fluxbb::layout.main', 'FluxBB\View\GlobalsComposer');
            $view->composer('fluxbb::admin.layout.main', 'FluxBB\View\GlobalsComposer');

            return $view;
        });
    }
protected function registerViewComposers ( ) { $ this -> app -> extend ( 'view' , function ( Factory $ view ) { $ view -> composer ( 'fluxbb::layout.main' , 'FluxBB\View\AlertsComposer' ) ; $ view -> composer ( 'fluxbb::layout.main' , 'FluxBB\View\GlobalsComposer' ) ; $ view -> composer ( 'fluxbb::admin.layout.main' , 'FluxBB\View\GlobalsComposer' ) ; return $ view ; } ) ; }
Register any view composers.

@return void
Register any view composers .