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()
    {
         $pages=new Pages ;
         $pages= $pages->getall_pages() ;
       view()->share('pages', $pages);
    }
public function boot ( ) { $ pages = new Pages ; $ pages = $ pages -> getall_pages ( ) ; view ( ) -> share ( 'pages' , $ pages ) ; }
Bootstrap any application services.
Bootstrap any application services .