Laravel Captcha : Numeric captcha

I created a multilingual program. I think some user don’t user QWERTY keyboard (etc. kanji).

So I need numeric captcha.

At the end I installed and modified Hamog Captcha :

project folder \vendor\hamog\captcha\src\ Captcha.php

protected function randomText()
//$alphaNumeric = array_merge(range('A', 'Z'), range('a', 'z'), range(0, 9));
$alphaNumeric = range(0, 9);


Now the captcha shows only numbers.

B logbook : PHP | Javascript | Laravel | CodeIgniter | VueJs | ReactJs | WordPress

Translate »