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('blog.sidebar-categories','App\Http\ViewComposers\SidebarCategoryComposer');
     }
public function boot ( ) { view ( ) -> composer ( 'blog.sidebar-categories' , 'App\Http\ViewComposers\SidebarCategoryComposer' ) ; }
Bootstrap the application services.
Bootstrap the application services .
// Using Closure based composers...