branch from mews for TTS
Require this package with composer:
composer require elliot9/captcha
Find the providers key in config/app.php and register the Captcha Service Provider.
'providers' => [
// ...
Elliot9\Captcha\CaptchaServiceProvider::class,
]
Find the aliases key in config/app.php.
'aliases' => [
// ...
'Captcha' => Elliot9\Captcha\Facades\Captcha::class,
]
php artisan vendor:publish
config/captcha.php
'default' => [
'length' => 4,
'width' => 120,
'height' => 36,
'quality' => 90,
'math' => false,
'account' =>'', //TTS Account
'password' =>'', // TTS password
],
{{captcha_audio_src()}} => return Audio Captcha src
{{captcha}} => Captcha img