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);
        $collections = Collection::select('volume')->groupBy('volume')->get();
        view()->share('collections', $collections);
    }
public function boot ( ) { Schema :: defaultStringLength ( 191 ) ; $ collections = Collection :: select ( 'volume' ) -> groupBy ( 'volume' ) -> get ( ) ; view ( ) -> share ( 'collections' , $ collections ) ; }
Bootstrap any application services.
Bootstrap any application services .