app/Http/Controllers/TestStepController.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)
	{
		$step = \App\TestStep::find($id);
		$step->tc_name = \App\TestCase::select('tc_name')->where('tc_id', $step->tc_id)->get()[0]['tc_name'];
		$execution = \App\Execution::where('ts_id', $id)->first(); 
		if($execution == null)
			 $execution = (object) array();
		return view('forms.edit_teststep', ['step' => $step , 'execution' => $execution]);
	}
public function edit ( $ id ) { $ step = \ App \ TestStep :: find ( $ id ) ; $ step -> tc_name = \ App \ TestCase :: select ( 'tc_name' ) -> where ( 'tc_id' , $ step -> tc_id ) -> get ( ) [ 0 ] [ 'tc_name' ] ; $ execution = \ App \ Execution :: where ( 'ts_id' , $ id ) -> first ( ) ; if ( $ execution == null ) $ execution = ( object ) array ( ) ; return view ( 'forms.edit_teststep' , [ 'step' => $ step , 'execution' => $ execution ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .
//return $step;