public function getUpdate($id) { $gather = Gather::find($id); $lists = $gather->detail->lists('item_id'); $items = Item::whereNotIn('id', $lists)->get(); return view("gathers.update")->with('gather', $gather)->with('items', $items); }