0
you can use my captcha Library :
Require this package with composer:
composer require hpd/captcha
Usage:
<img src="{{captcha_get_src()}}" title="Captcha" alt="Captcha">
<div> {!!captcha_get_img()!!}</div>
/* Validation */
Route::post('captcha_check', function() {
$validator = Validator::make($request->all(), [
'captcha' => 'required|captcha',
]);
if ($validator->fails()) {
return redirect()->back()
->withErrors($validator)
->withInput();
}
});
This package also supports API mode.
👉 Read more at the link below