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()
    {
        \Illuminate\Support\Facades\Schema::defaultStringLength(191);
        $record_types = RecordType::all();
        view()->share('adminMenu', $record_types);
        $pages = array_merge(Record::where('show_on_menu',1)->get()->toArray(),RecordType::where('show_on_menu',1)->get()->toArray());
        view()->share('frontMenu', $pages);
    }
public function boot ( ) { \ Illuminate \ Support \ Facades \ Schema :: defaultStringLength ( 191 ) ; $ record_types = RecordType :: all ( ) ; view ( ) -> share ( 'adminMenu' , $ record_types ) ; $ pages = array_merge ( Record :: where ( 'show_on_menu' , 1 ) -> get ( ) -> toArray ( ) , RecordType :: where ( 'show_on_menu' , 1 ) -> get ( ) -> toArray ( ) ) ; view ( ) -> share ( 'frontMenu' , $ pages ) ; }
Bootstrap any application services.
Bootstrap any application services .