anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.77k stars 234 forks source link

not working laravel 5.8 #138

Closed salamat1307 closed 4 years ago

salamat1307 commented 5 years ago

I am using Laravel 5.8, no captcha 3.0.4 and google recaptcha v3, but not working

anhskohbo commented 5 years ago

this package support recaptcha v2 only

salamat1307 commented 5 years ago

@anhskohbo thanks for quick reply, I changed to recaptcha v2, but also not working

salamat1307 commented 5 years ago

@anhskohbo I think the version of laravel and the version of your package do not support each other

salamat1307 commented 5 years ago

Please update it for laravel 5.8* version

henriquepalazzo commented 5 years ago

So, it's not working with 5.8?

JaceyBennett commented 5 years ago

I have Laravel 5.8.29. I installed your package with Composer:

$ composer require anhskohbo/no-captcha
Using version ^3.0 for anhskohbo/no-captcha
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
  - Installing anhskohbo/no-captcha (3.0.4): Downloading (100%)
Writing lock file
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
Discovered Package: anhskohbo/no-captcha
Discovered Package: beyondcode/laravel-dump-server
Discovered Package: fideloper/proxy
Discovered Package: laravel/tinker
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: srmklive/paypal
Package manifest generated successfully.

When I put {!! NoCaptcha::display() !!}

in my view, nothing happens. The reCaptcha does not show.

MarlonRaphael commented 5 years ago

Estou com a versão 5.8.29 do Laravel e aparece pra mim, porém, com uma mensagem de erro:

ERRO para o proprietário do site: o tipo de chave é inválido

hanijazzar commented 5 years ago

you need to add <script src="//www.google.com/recaptcha/api.js"></script> to your page. It's strange that nobody mentions this in the documentation

coffeeneer commented 4 years ago

Please check the usage section : https://github.com/anhskohbo/no-captcha#usage

You need to include the script in your blade template before calling display using:

{!! NoCaptcha::renderJs() !!}

This snippet can be placed in the html section as well, since the script is loaded with async and defer attributes it won't block rendering.

This package does support Laravel 5.8, but does not support ReCaptcha V3. The V3 works quite differently from the V2 ReCaptha's.

FahadHussain2020 commented 3 years ago

i am verifying the reCaptcha challenge but still i am getting the captcha field is required can anybody help me out !!