app/Http/Controllers/TestStepController.php
/**
	 * Show the form for creating a new resource.
	 *
	 * @return Response
	 */
Show the form for creating a new resource.
@return Response
Show the form for creating a new resource . @return Response
public function create($tc_id)
	{	
		if($tc_id != null)
			$cases = \App\TestCase::where('tc_id' , $tc_id)->get();
		else		
			$cases = \App\TestCase::where('tp_id' , session()->get('open_project'))->get();
		return view('forms.teststep', ['cases' =>$cases]);
	}
public function create ( $ tc_id ) { if ( $ tc_id != null ) $ cases = \ App \ TestCase :: where ( 'tc_id' , $ tc_id ) -> get ( ) ; else $ cases = \ App \ TestCase :: where ( 'tp_id' , session ( ) -> get ( 'open_project' ) ) -> get ( ) ; return view ( 'forms.teststep' , [ 'cases' => $ cases ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .