app/Http/Controllers/ReportController.php
/**
	 * Show the form for editing the specified resource.
	 *
	 * @param  int  $id
	 * @return Response
	 */
Show the form for editing the specified resource.
@param  int  $id
@return Response
Show the form for editing the specified resource . @param int $id @return Response
public function edit($id)
	{
		$lab = \App\Lab::find($id);
		$lab->tc_name = \App\TestCase::select('tc_name')->where('tc_id', $lab->tc_id)->get()[0]['tc_name'];
		return view('forms.edit_result', ['lab' => $lab ]);
	}
public function edit ( $ id ) { $ lab = \ App \ Lab :: find ( $ id ) ; $ lab -> tc_name = \ App \ TestCase :: select ( 'tc_name' ) -> where ( 'tc_id' , $ lab -> tc_id ) -> get ( ) [ 0 ] [ 'tc_name' ] ; return view ( 'forms.edit_result' , [ 'lab' => $ lab ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .