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()
    {
        Passport::routes();
        Schema::defaultStringLength(191);
        View::composer('*', function($view)
        {
            $adminmenus=\App\Adminmenu::wherenull('parentid')->where('showinnav',1)->with('childrenformenu')->get();
            $siteConfig = SiteConfig::findOrFail(1);
            $view->with('navs',$adminmenus)->with('siteConfig',$siteConfig);
        });
    }
public function boot ( ) { Passport :: routes ( ) ; Schema :: defaultStringLength ( 191 ) ; View :: composer ( '*' , function ( $ view ) { $ adminmenus = \ App \ Adminmenu :: wherenull ( 'parentid' ) -> where ( 'showinnav' , 1 ) -> with ( 'childrenformenu' ) -> get ( ) ; $ siteConfig = SiteConfig :: findOrFail ( 1 ) ; $ view -> with ( 'navs' , $ adminmenus ) -> with ( 'siteConfig' , $ siteConfig ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .