Overtrue\Validation\Validator::validateImage PHP Method

validateImage() protected method

Validate the MIME type of a file is an image MIME type.
protected validateImage ( string $attribute, mixed $value ) : boolean
$attribute string
$value mixed
return boolean
    protected function validateImage($attribute, $value)
    {
        return $this->validateMimes($attribute, $value, ['jpeg', 'png', 'gif', 'bmp']);
    }
Validator