/** * Setup the defined modules. * @return void */ public function boot() { foreach ($this->modules as $class => $module) { $module->boot(); $this->models = array_merge($module->models, $this->models); } // Map the routes. $this->app->call([$this, 'map']); }