protected function hasNotFailedPreviousRuleIfPresenceRule($rule, $attribute)
    {
        return in_array($rule, ['Unique', 'Exists']) ? ! $this->messages->has($attribute) : true;
    }
protected function hasNotFailedPreviousRuleIfPresenceRule($rule, $attribute)
    {
        return in_array($rule, ['Unique', 'Exists']) ? ! $this->messages->has($attribute) : true;
    }
protected function hasNotFailedPreviousRuleIfPresenceRule ( $ rule , $ attribute ) { return in_array ( $ rule , [ 'Unique' , 'Exists' ] ) ? ! $ this -> messages -> has ( $ attribute ) : true ; }
Determine if it's a necessary presence validation.

This is to avoid possible database type comparison errors.

@param  string  $rule
@param  string  $attribute
@return bool
Determine if it s a necessary presence validation .