/** * Show the form for editing the specified member. * * @param int $id The id of the member to edit * @return Response */ public function edit($id) { $member = Member::findOrFail($id); // Find member $groups = Group::lists('name', 'id'); // Get list of all groups and their ids for the form $districts = District::lists('name', 'id'); // Get list of all Districts return view('members.edit', compact('member', 'groups', 'districts')); }