diff --git a/src/Captcha.php b/src/Captcha.php index e3ba73f..65efa55 100644 --- a/src/Captcha.php +++ b/src/Captcha.php @@ -308,7 +308,7 @@ public function create(string $config = 'default', bool $api = false) return $api ? [ 'sensitive' => $generator['sensitive'], 'key' => $generator['key'], - 'img' => $this->image->encode()->encoded + 'img' => $this->image->encode()->toDataUri() ] : new Response($this->image->encode(), 200, [ 'Content-Type' => 'image/jpeg', 'Content-Disposition' => 'inline; filename="image.jpg"',