예제 #1
0
 public function configs(Request $request)
 {
     if ($request->user()->hasRole('admin')) {
         $engine_configs = Config::getEngineConfig($this->city->db);
         $pricese_configs = Config::getPricesConfig($this->city->db);
         $other_configs = Config::getOtherConfig($this->city->db);
         return view('personal.configs', ['eng_conf' => $engine_configs, 'price_conf' => $pricese_configs, 'other_conf' => $other_configs, 'city' => $this->city->index]);
     }
 }