kambuku/app/Providers/homeSliderProvider.php
/**
     * Bootstrap the application services.
     *
     * @return void
     */
Bootstrap the application services.
@return void
Bootstrap the application services . @return void
public function boot()
    {
        view()->composer('partials.slider', function ($view){
            $slides = homeSliders::orderBy('order', 'ASC')
                ->whereIs_active('1')->get();
            $view->with('slides', $slides);
        });
    }
public function boot ( ) { view ( ) -> composer ( 'partials.slider' , function ( $ view ) { $ slides = homeSliders :: orderBy ( 'order' , 'ASC' ) -> whereIs_active ( '1' ) -> get ( ) ; $ view -> with ( 'slides' , $ slides ) ; } ) ; }
Bootstrap the application services.
Bootstrap the application services .
//