/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $lots = Lot::lists('number', 'id'); $control = Control::find($id); $measureTypes = MeasureType::all(); return View::make('control.edit')->with('control', $control)->with('lots', $lots)->with('measureTypes', $measureTypes); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function resultsEdit($controlTestId) { $controlTest = ControlTest::find($controlTestId); $lots = Lot::lists('lot_no', 'id'); $lot = $controlTest->lot_id; return view('control.resultsEdit', compact('controlTest'))->with('lots', $lots)->with('lot', $lot); }