/**
  * Compose config variable.
  */
 private function composeConfigItems()
 {
     View::composer(['display.show', 'auth.index', 'manage.layout', 'manage.wrap'], function ($view) {
         $view->with(['configs' => Config::all()->lists('value', 'key')]);
     });
     View::composer(['config.edit'], function ($view) {
         $view->with(['select_items' => ['is_open' => Config::getConfigValueByKey('open_map')]]);
     });
 }
 /**
  * Get config page.
  *
  * @return mixed
  */
 public function getEdit()
 {
     return View::make('config.edit')->with(['configs' => Config::all()->toArray(), 'config_items' => $this->config_items]);
 }