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()
    {
        Schema::defaultStringLength(191);
        view()->composer('layouts.sidebar', function($view)
        {
            $view->with('organizations', \App\Organization::all());
        });
        view()->composer('layouts.sidebar', function($view)
        {
            $view->with('taxonomies', \App\Taxonomy::all());
        });
        view()->composer('layouts.header', function($view)
        {
            $view->with('layout', \App\Layout::first());
        });
        view()->composer('layouts.footer', function($view)
        {
            $view->with('layout', \App\Layout::first());
        });
    }
public function boot ( ) { Schema :: defaultStringLength ( 191 ) ; view ( ) -> composer ( 'layouts.sidebar' , function ( $ view ) { $ view -> with ( 'organizations' , \ App \ Organization :: all ( ) ) ; } ) ; view ( ) -> composer ( 'layouts.sidebar' , function ( $ view ) { $ view -> with ( 'taxonomies' , \ App \ Taxonomy :: all ( ) ) ; } ) ; view ( ) -> composer ( 'layouts.header' , function ( $ view ) { $ view -> with ( 'layout' , \ App \ Layout :: first ( ) ) ; } ) ; view ( ) -> composer ( 'layouts.footer' , function ( $ view ) { $ view -> with ( 'layout' , \ App \ Layout :: first ( ) ) ; } ) ; }
Bootstrap any application services.
Bootstrap any application services .