app/Http/Controllers/Handlers/DeleteQueryHandler.php
/**
	 * Delete Scenarion Labs query by testcase id
	 *
	 * @return int
	 */
Delete Scenarion Labs query by testcase id
@return int
Delete Scenarion Labs query by testcase id @return int
public function deleteScLabByScenarioId($id)
	{  
		$tp_id = session()->get('open_project');  
		try{  
			$deletedRows = \App\ScenarioLab::where(['tsc_id' => $id , 'tp_id' => $tp_id])->delete();
		}catch(Exception $e)
		{
			return 0;
		}
		return 1;
	}
public function deleteScLabByScenarioId ( $ id ) { $ tp_id = session ( ) -> get ( 'open_project' ) ; try { $ deletedRows = \ App \ ScenarioLab :: where ( [ 'tsc_id' => $ id , 'tp_id' => $ tp_id ] ) -> delete ( ) ; } catch ( Exception $ e ) { return 0 ; } return 1 ; }
Delete Scenarion Labs query by testcase id
 @return int
Delete Scenarion Labs query by testcase id @return int