app/Http/Controllers/TestcaseController.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()
	{
		$scenarios = \App\TestScenario::where('tp_id' , session()->get('open_project'))->get();	
		foreach ($scenarios as $key => $value) {
			$functionality =  \App\TestFunctionality::find($value->tf_id);
			$value->tf_name = $functionality->tf_name;
		}
		return view('forms.testcase',['scenarios' => $scenarios]);	
	}
public function create ( ) { $ scenarios = \ App \ TestScenario :: where ( 'tp_id' , session ( ) -> get ( 'open_project' ) ) -> get ( ) ; foreach ( $ scenarios as $ key => $ value ) { $ functionality = \ App \ TestFunctionality :: find ( $ value -> tf_id ) ; $ value -> tf_name = $ functionality -> tf_name ; } return view ( 'forms.testcase' , [ 'scenarios' => $ scenarios ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .
//$functionalities = \App\TestFunctionality::();