public function add_view_composers()
    {

        // User information view composer
        $this->app['view']->composer([
            'web::includes.header',
            'web::includes.sidebar',
        ], User::class);

        // ESI Status view composer
        $this->app['view']->composer([
            'web::includes.footer',
        ], Esi::class);

        // Sidebar menu view composer
        $this->app['view']->composer(
            'web::includes.sidebar', Sidebar::class);

        // Character info composer
        $this->app['view']->composer([
            'web::character.includes.summary',
            'web::character.includes.menu',
            'web::character.intel.includes.menu',
            'web::character.wallet.includes.menu',
        ], CharacterSummary::class);

        // Character menu composer
        $this->app['view']->composer([
            'web::character.includes.menu',
        ], CharacterMenu::class);

        // Character layout breadcrumb
        $this->app['view']->composer([
            'web::character.layouts.view',
        ], CharacterLayout::class);

        // Corporation info composer
        $this->app['view']->composer([
            'web::corporation.includes.summary',
            'web::corporation.includes.menu',
            'web::corporation.security.includes.menu',
            'web::corporation.ledger.includes.menu',
            'web::corporation.wallet.includes.menu',
        ], CorporationSummary::class);

        // Corporation menu composer
        $this->app['view']->composer([
            'web::corporation.includes.menu',
        ], CorporationMenu::class);

        // Corporation layout breadcrumb
        $this->app['view']->composer([
            'web::corporation.layouts.view',
        ], CorporationLayout::class);

    }
public function add_view_composers()
    {

        // User information view composer
        $this->app['view']->composer([
            'web::includes.header',
            'web::includes.sidebar',
        ], User::class);

        // ESI Status view composer
        $this->app['view']->composer([
            'web::includes.footer',
        ], Esi::class);

        // Sidebar menu view composer
        $this->app['view']->composer(
            'web::includes.sidebar', Sidebar::class);

        // Character info composer
        $this->app['view']->composer([
            'web::character.includes.summary',
            'web::character.includes.menu',
            'web::character.intel.includes.menu',
            'web::character.wallet.includes.menu',
        ], CharacterSummary::class);

        // Character menu composer
        $this->app['view']->composer([
            'web::character.includes.menu',
        ], CharacterMenu::class);

        // Character layout breadcrumb
        $this->app['view']->composer([
            'web::character.layouts.view',
        ], CharacterLayout::class);

        // Corporation info composer
        $this->app['view']->composer([
            'web::corporation.includes.summary',
            'web::corporation.includes.menu',
            'web::corporation.security.includes.menu',
            'web::corporation.ledger.includes.menu',
            'web::corporation.wallet.includes.menu',
        ], CorporationSummary::class);

        // Corporation menu composer
        $this->app['view']->composer([
            'web::corporation.includes.menu',
        ], CorporationMenu::class);

        // Corporation layout breadcrumb
        $this->app['view']->composer([
            'web::corporation.layouts.view',
        ], CorporationLayout::class);

    }
public function add_view_composers ( ) { // User information view composer $ this -> app [ 'view' ] -> composer ( [ 'web::includes.header' , 'web::includes.sidebar' , ] , User :: class ) ; // ESI Status view composer $ this -> app [ 'view' ] -> composer ( [ 'web::includes.footer' , ] , Esi :: class ) ; // Sidebar menu view composer $ this -> app [ 'view' ] -> composer ( 'web::includes.sidebar' , Sidebar :: class ) ; // Character info composer $ this -> app [ 'view' ] -> composer ( [ 'web::character.includes.summary' , 'web::character.includes.menu' , 'web::character.intel.includes.menu' , 'web::character.wallet.includes.menu' , ] , CharacterSummary :: class ) ; // Character menu composer $ this -> app [ 'view' ] -> composer ( [ 'web::character.includes.menu' , ] , CharacterMenu :: class ) ; // Character layout breadcrumb $ this -> app [ 'view' ] -> composer ( [ 'web::character.layouts.view' , ] , CharacterLayout :: class ) ; // Corporation info composer $ this -> app [ 'view' ] -> composer ( [ 'web::corporation.includes.summary' , 'web::corporation.includes.menu' , 'web::corporation.security.includes.menu' , 'web::corporation.ledger.includes.menu' , 'web::corporation.wallet.includes.menu' , ] , CorporationSummary :: class ) ; // Corporation menu composer $ this -> app [ 'view' ] -> composer ( [ 'web::corporation.includes.menu' , ] , CorporationMenu :: class ) ; // Corporation layout breadcrumb $ this -> app [ 'view' ] -> composer ( [ 'web::corporation.layouts.view' , ] , CorporationLayout :: class ) ; }
Add the view composers. This allows us
to make data available in views without
repeating any of the code.
Add the view composers . This allows us to make data available in views without repeating any of the code .