tree(); $foot=$d->foot(); // dd($foot); // $foot=$foot->toArray(); view()->share('foot',$foot); view()->share('nav',$nav); } /** * Register any application services. * * @return void */ public function register() { // // 仅在开发环境中使用 if ($this->app->environment() !== 'production') { $this->app->register(\Way\Generators\GeneratorsServiceProvider::class); $this->app->register(\Xethron\MigrationsGenerator\MigrationsGeneratorServiceProvider::class); } } }