app/Http/Controllers/IntegrationHandler.php
/**
	 * Handles the functionality part of the row from excel
	 *
	 * @return fn_id
	 */
Handles the functionality part of the row from excel
@return fn_id
Handles the functionality part of the row from excel @return fn_id
public function handleFunctionality($row, $fn_id)
	{		
       $fn = [];
        if(!isset($row[0]) || $row[0]  == null ||  $row[0] == "" || count($row[0]) == 0 ){
           }else{
              $fn['tf_name']      = $row[0];
              $fn['description']  = $row[1];
              $fn['created_by']   = session()->get('email');
              $fn['tp_id']        = session()->get('open_project');
              $fn_check           =  \App\TestFunctionality::where($fn)->first();
              if($fn_check!= null && $fn_check->exists == 1)	{
                  $fn_id          = $fn_check->tf_id;
              }
              else
              {
                  $fn_id = $fn['tf_id'] = $this->genrateRandomInt();
                  try{
                    \App\TestFunctionality::create($fn);       	
                  }catch(Exception $e){
                  }	
              }
          }
    return $fn_id;
}
public function handleFunctionality ( $ row , $ fn_id ) { $ fn = [ ] ; if ( ! isset ( $ row [ 0 ] ) || $ row [ 0 ] == null || $ row [ 0 ] == " " || count ( $ row [ 0 ] ) == 0 ) { } else { $ fn [ 'tf_name' ] = $ row [ 0 ] ; $ fn [ 'description' ] = $ row [ 1 ] ; $ fn [ 'created_by' ] = session ( ) -> get ( 'email' ) ; $ fn [ 'tp_id' ] = session ( ) -> get ( 'open_project' ) ; $ fn_check = \ App \ TestFunctionality :: where ( $ fn ) -> first ( ) ; if ( $ fn_check != null && $ fn_check -> exists == 1 ) { $ fn_id = $ fn_check -> tf_id ; } else { $ fn_id = $ fn [ 'tf_id' ] = $ this -> genrateRandomInt ( ) ; try { \ App \ TestFunctionality :: create ( $ fn ) ; } catch ( Exception $ e ) { } } } return $ fn_id ; }
Handles the functionality part of the row from excel
 @return fn_id
Handles the functionality part of the row from excel @return fn_id
/*if(isset($row[0]))
       {*/ //If nothing to process then do nothing //return $fn_id; /*}
      else{
        $fn_id =0;
      }*/