all(); $source_type = ''; if(!empty($inputData['creditreport'])){ $source_type = $inputData['creditreport']['credit_report_company_type']; }if(!empty($inputData['source_type'])){ $source_type = $inputData['source_type']; } if($source_type == config('constant.reportType.SMART_CREDIT')) { return preg_match($this->password_validation_rule,$value); } elseif ($source_type == config('constant.reportType.IDENTITY_IQ')){ return true; } } /** * Get the validation error message. * * @return string */ public function message() { return 'Password do not match in provider.'; } }