app/Http/Controllers/Handlers/DeleteQueryHandler.php
/**
	 * Delete Steps query by testcase id
	 *
	 * @return int
	 */
Delete Steps query by testcase id
@return int
Delete Steps query by testcase id @return int
public function deleteStepsByCaseId($id)
	{    
		try{  
        	$steps = \App\TestStep::where('tc_id' , $id)->get()->toArray();        	
        	foreach ($steps as $s_value) {
        		$ts_id = $s_value['ts_id'];
    		   	$this->deleteExecutionByStepId($ts_id);
        	}
        	$steps = \App\TestStep::where('tc_id' , $id)->delete();		
		}catch(Exception $e)
		{
			return 0;
		}
		return 1;
	}
public function deleteStepsByCaseId ( $ id ) { try { $ steps = \ App \ TestStep :: where ( 'tc_id' , $ id ) -> get ( ) -> toArray ( ) ; foreach ( $ steps as $ s_value ) { $ ts_id = $ s_value [ 'ts_id' ] ; $ this -> deleteExecutionByStepId ( $ ts_id ) ; } $ steps = \ App \ TestStep :: where ( 'tc_id' , $ id ) -> delete ( ) ; } catch ( Exception $ e ) { return 0 ; } return 1 ; }
Delete Steps query by testcase id
 @return int
Delete Steps query by testcase id @return int
//Start deleting from lowest child (execution) //Delete associated teststeps       	