app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        view()->composer('embed.header', function($view){
            $view->with('cart_products', CartController::cart());
        });
    }
public function boot ( ) { view ( ) -> composer ( 'embed.header' , function ( $ view ) { $ view -> with ( 'cart_products' , CartController :: cart ( ) ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .