public function newValidator(array &$params, array $rules, $clean = true)
	{
		// if validating update params 
		// unique rule should skip entry with this id
		
		// check if these are update params
		if(!empty($params['id']))
		{

			// add exception for this id on all unique rules
			$rules = $this->addUniqueRuleException($rules, $params['id']);
		}

		if($clean)
		{
			$params = $this->cleanParams($params, $rules);
		}
		
		return ValidatorFacade::make($params, $rules);
	}
public function newValidator(array &$params, array $rules, $clean = true)
	{
		// if validating update params 
		// unique rule should skip entry with this id
		
		// check if these are update params
		if(!empty($params['id']))
		{

			// add exception for this id on all unique rules
			$rules = $this->addUniqueRuleException($rules, $params['id']);
		}

		if($clean)
		{
			$params = $this->cleanParams($params, $rules);
		}
		
		return ValidatorFacade::make($params, $rules);
	}
public function newValidator ( array & $ params , array $ rules , $ clean = true ) { // if validating update params  // unique rule should skip entry with this id // check if these are update params if ( ! empty ( $ params [ 'id' ] ) ) { // add exception for this id on all unique rules $ rules = $ this -> addUniqueRuleException ( $ rules , $ params [ 'id' ] ) ; } if ( $ clean ) { $ params = $ this -> cleanParams ( $ params , $ rules ) ; } return ValidatorFacade :: make ( $ params , $ rules ) ; }
Set new validator instance

@param array $params
@param array $rules

@return Illuminate\Validation\Validator
Set new validator instance