app/Providers/ComposerServiceProvider.php
/**
     * Register bindings in the container.
     *
     * @return void
     */
Register bindings in the container.
@return void
Register bindings in the container . @return void
public function boot()
    {
        view()->composer('_sidebars.left', \App\Http\ViewComposers\SidebarLeftComposer::class);
        view()->composer('_sidebars.right', \App\Http\ViewComposers\SidebarRightComposer::class);
        view()->composer('_blocks.home-banner', \App\Http\ViewComposers\HomeBannerComposer::class);
        view()->composer([
            '_sidebars.left', 'settings.index', 'auth.register',
        ], \App\Http\ViewComposers\CountriesComposer::class);
    }
public function boot ( ) { view ( ) -> composer ( '_sidebars.left' , \ App \ Http \ ViewComposers \ SidebarLeftComposer :: class ) ; view ( ) -> composer ( '_sidebars.right' , \ App \ Http \ ViewComposers \ SidebarRightComposer :: class ) ; view ( ) -> composer ( '_blocks.home-banner' , \ App \ Http \ ViewComposers \ HomeBannerComposer :: class ) ; view ( ) -> composer ( [ '_sidebars.left' , 'settings.index' , 'auth.register' , ] , \ App \ Http \ ViewComposers \ CountriesComposer :: class ) ; }
Register bindings in the container.
Register bindings in the container .
// Using class based composers...