kambuku/app/Providers/SearchBarProvider.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.bottom_header', function ($view){
           $search_categories = categories::orderBy('name', 'ASC')->get();
           $search_locations = cities::orderBy('name', 'ASC')->where('country_id', '=', '4')->get();
           $view->with(['categories' => $search_categories, 'cities' => $search_locations]);
        });
    }
public function boot ( ) { view ( ) -> composer ( 'partials.bottom_header' , function ( $ view ) { $ search_categories = categories :: orderBy ( 'name' , 'ASC' ) -> get ( ) ; $ search_locations = cities :: orderBy ( 'name' , 'ASC' ) -> where ( 'country_id' , '=' , '4' ) -> get ( ) ; $ view -> with ( [ 'categories' => $ search_categories , 'cities' => $ search_locations ] ) ; } ) ; }
Bootstrap the application services.
Bootstrap the application services .
//