|  | @@ -22,12 +22,16 @@ class SeminarSignUpController extends ApiController
 | 
	
		
			
			| 22 | 22 |      // save data to db
 | 
	
		
			
			| 23 | 23 |      public function insertData(StoreRequest $request)
 | 
	
		
			
			| 24 | 24 |      {
 | 
	
		
			
			|  | 25 | +        \Log::info(print_r($request,true));
 | 
	
		
			
			|  | 26 | +        
 | 
	
		
			
			| 25 | 27 |          $name = $this->safeEncrypt($request->input('name', 'name'), 'arm');
 | 
	
		
			
			| 26 | 28 |          $email = $this->safeEncrypt($request->input('email', 'email'), 'arm');
 | 
	
		
			
			| 27 | 29 |          $mobile = $this->safeEncrypt($request->input('mobile', 'mobile'), 'arm');
 | 
	
		
			
			| 28 | 30 |          $trackNo = $request->input('trackNo', '');
 | 
	
		
			
			| 29 | 31 |          
 | 
	
		
			
			| 30 | 32 |          $overOrNot = $this->seminarSignUpSv->overLimitOrNot($trackNo);
 | 
	
		
			
			|  | 33 | +        \Log::info($overOrNot);
 | 
	
		
			
			|  | 34 | +
 | 
	
		
			
			| 31 | 35 |          if ($overOrNot) {
 | 
	
		
			
			| 32 | 36 |  
 | 
	
		
			
			| 33 | 37 |              $this->seminarSignUpSv->insertData($name, $email, $mobile, $trackNo);
 | 
	
	
		
			
			|  | @@ -39,7 +43,8 @@ class SeminarSignUpController extends ApiController
 | 
	
		
			
			| 39 | 43 |          $data = [
 | 
	
		
			
			| 40 | 44 |              'res' => $res,
 | 
	
		
			
			| 41 | 45 |          ];
 | 
	
		
			
			| 42 |  | -        dd(123);
 | 
	
		
			
			|  | 46 | +        \Log::info(print_r($res,true));
 | 
	
		
			
			|  | 47 | +        
 | 
	
		
			
			| 43 | 48 |          return $this->apiResponse($data);
 | 
	
		
			
			| 44 | 49 |      }
 | 
	
		
			
			| 45 | 50 |  
 |