public function edit(Request $request) { $proId = $request->input('pro_id'); $action = $request->input('action'); $data = $input = $request->only('pro_name', 'parent_cate', 'son_cate', 'contact', 'pro_desc', 'desire', 'activity'); return Goods::edit($action, $data, $proId); }