original_string: public function validateInArray($attribute, $value, $parameters)
      {
          $this->requireParameterCount(1, $parameters, 'in_array');
  
          $explicitPath = ValidationData::getLeadingExplicitAttributePath($parameters[0]);
  
          $attributeData = ValidationData::extractDataFromPath($explicitPath, $this->data);
  
          $otherValues = Arr::where(Arr::dot($attributeData), function ($value, $key) use ($parameters) {
              return Str::is($parameters[0], $key);
          });
  
          return in_array($value, $otherValues);
      }
code: public function validateInArray($attribute, $value, $parameters)
      {
          $this->requireParameterCount(1, $parameters, 'in_array');
  
          $explicitPath = ValidationData::getLeadingExplicitAttributePath($parameters[0]);
  
          $attributeData = ValidationData::extractDataFromPath($explicitPath, $this->data);
  
          $otherValues = Arr::where(Arr::dot($attributeData), function ($value, $key) use ($parameters) {
              return Str::is($parameters[0], $key);
          });
  
          return in_array($value, $otherValues);
      }
code_tokens: public function validateInArray ( $ attribute , $ value , $ parameters ) { $ this -> requireParameterCount ( 1 , $ parameters , 'in_array' ) ; $ explicitPath = ValidationData :: getLeadingExplicitAttributePath ( $ parameters [ 0 ] ) ; $ attributeData = ValidationData :: extractDataFromPath ( $ explicitPath , $ this -> data ) ; $ otherValues = Arr :: where ( Arr :: dot ( $ attributeData ) , function ( $ value , $ key ) use ( $ parameters ) { return Str :: is ( $ parameters [ 0 ] , $ key ) ; } ) ; return in_array ( $ value , $ otherValues ) ; }
docstring: Validate that the values of an attribute is in another attribute.
  
  @param  string  $attribute
  @param  mixed   $value
  @param  array   $parameters
  @return bool
docstring_tokens: Validate that the values of an attribute is in another attribute .