public function validateMimes($attribute, $value, $parameters)
    {
        if (! $this->isValidFileInstance($value)) {
            return false;
        }

        if ($this->shouldBlockPhpUpload($value, $parameters)) {
            return false;
        }

        return $value->getPath() !== '' && in_array($value->guessExtension(), $parameters);
    }
public function validateMimes($attribute, $value, $parameters)
    {
        if (! $this->isValidFileInstance($value)) {
            return false;
        }

        if ($this->shouldBlockPhpUpload($value, $parameters)) {
            return false;
        }

        return $value->getPath() !== '' && in_array($value->guessExtension(), $parameters);
    }
public function validateMimes ( $ attribute , $ value , $ parameters ) { if ( ! $ this -> isValidFileInstance ( $ value ) ) { return false ; } if ( $ this -> shouldBlockPhpUpload ( $ value , $ parameters ) ) { return false ; } return $ value -> getPath ( ) !== '' && in_array ( $ value -> guessExtension ( ) , $ parameters ) ; }
Validate the guessed extension of a file upload is in a set of file extensions.

@param  string  $attribute
@param  mixed  $value
@param  array   $parameters
@return bool
Validate the guessed extension of a file upload is in a set of file extensions .