protected function hasRule($attribute, $rules)
	{
		$rules = (array) $rules;

		// To determine if the attribute has a rule in the ruleset, we will spin
		// through each of the rules assigned to the attribute and parse them
		// all, then check to see if the parsed rules exists in the arrays.
		foreach ($this->rules[$attribute] as $rule)
		{
			list($rule, $parameters) = $this->parseRule($rule);

			if (in_array($rule, $rules)) return true;
		}

		return false;
	}
protected function hasRule($attribute, $rules)
	{
		$rules = (array) $rules;

		// To determine if the attribute has a rule in the ruleset, we will spin
		// through each of the rules assigned to the attribute and parse them
		// all, then check to see if the parsed rules exists in the arrays.
		foreach ($this->rules[$attribute] as $rule)
		{
			list($rule, $parameters) = $this->parseRule($rule);

			if (in_array($rule, $rules)) return true;
		}

		return false;
	}
protected function hasRule ( $ attribute , $ rules ) { $ rules = ( array ) $ rules ; // To determine if the attribute has a rule in the ruleset, we will spin // through each of the rules assigned to the attribute and parse them // all, then check to see if the parsed rules exists in the arrays. foreach ( $ this -> rules [ $ attribute ] as $ rule ) { list ( $ rule , $ parameters ) = $ this -> parseRule ( $ rule ) ; if ( in_array ( $ rule , $ rules ) ) return true ; } return false ; }
Determine if the given attribute has a rule in the given set.

@param  string  $attribute
@param  array   $rules
@return bool
Determine if the given attribute has a rule in the given set .