app/Providers/ComposerServiceProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        View::composer(['front.home',
                        'front.article',
                        'front.home',
                        'front.subcategory',
                        'front.tag'
                        ],'App\Http\ViewComposers\NavbarComposer');
        View::composer(['admin.articles.edit',
                        'admin.categories.edit',
                        'admin.tags.edit',
                        ],'App\Http\ViewComposers\AdminComposer');
        View::composer(['front.home',
                        'front.tag',
                        'front.subcategory'],'App\Http\ViewComposers\BlockComposer');
        View::composer(['front.home',
                        'front.article',
                        'front.home',
                        'front.subcategory',
                        'front.tag'],'App\Http\ViewComposers\SharedComposer');
        View::composer(['front.home',
                        'front.article',
                        'front.home',
                        'front.subcategory',
                        'front.tag'],'App\Http\ViewComposers\VisitedComposer');
    }
public function boot ( ) { View :: composer ( [ 'front.home' , 'front.article' , 'front.home' , 'front.subcategory' , 'front.tag' ] , 'App\Http\ViewComposers\NavbarComposer' ) ; View :: composer ( [ 'admin.articles.edit' , 'admin.categories.edit' , 'admin.tags.edit' , ] , 'App\Http\ViewComposers\AdminComposer' ) ; View :: composer ( [ 'front.home' , 'front.tag' , 'front.subcategory' ] , 'App\Http\ViewComposers\BlockComposer' ) ; View :: composer ( [ 'front.home' , 'front.article' , 'front.home' , 'front.subcategory' , 'front.tag' ] , 'App\Http\ViewComposers\SharedComposer' ) ; View :: composer ( [ 'front.home' , 'front.article' , 'front.home' , 'front.subcategory' , 'front.tag' ] , 'App\Http\ViewComposers\VisitedComposer' ) ; }
Bootstrap the application services.
Bootstrap the application services .