private function registerComposers(array $configs) { foreach ($configs as $view => $composer) { $this->app->view->composer($view, $composer); } }