scyllaly / hcaptcha Goto Github PK
View Code? Open in Web Editor NEWhCaptcha for Laravel 5.x, 6.x, 7.x, 8.x, 9.x, 10.x, 11.x
Home Page: https://github.com/Scyllaly/hcaptcha
License: MIT License
hCaptcha for Laravel 5.x, 6.x, 7.x, 8.x, 9.x, 10.x, 11.x
Home Page: https://github.com/Scyllaly/hcaptcha
License: MIT License
- Conclusion: don't install laravel/framework v11.0.0 (conflict analysis result)
- scyllaly/hcaptcha 4.4.5 requires illuminate/support 5.*|6.*|7.*|8.*|^9.0|10.*
Hello,
Would you guys be open to change the config filename from config/HCaptcha.php to config/hcaptcha.php, so that it follows the Laravel's pattern for config filenames?
While this is not standardized, as Laravel doesn't enforce a specific filename, there's plenty of best practices recommendations, such as this one: https://github.com/alexeymezenin/laravel-best-practices#follow-laravel-naming-conventions - and some of us are really trying to follow these patterns.
I can do a pull request if needed, and if you're open to this change, just let me know.
Thank you.
I see this repo doesn't get a lot of commits, perhaps because of lack of time?
If you need a maintainer I'd be willing to give you a hand.
Due to Scyllaly being unresponsive I'm now maintaining a fork.
Did the following and I now get a 500 error
1- The ServiceProvider to the providers array :
Scyllaly\HCaptcha\HCaptchaServiceProvider::class,
2- The class alias to the aliases array :
'HCaptcha' => Scyllaly\HCaptcha\Facades\HCaptcha::class,
3- Publish the config file
php artisan vendor:publish --provider="Scyllaly\HCaptcha\HCaptchaServiceProvider"
How to solve this issue??
Been trying to add validation to the controller files and it either just doesn't work at all or it gives my site a 500 error. please add more documentation
Please add support for laravel 6 and 7
Fix validation rules in the documentation in the "Validation" section.
It should be required|HCaptcha
instead of required|captcha
.
Thanks for the package! ❤️
'custom' => [
'h-captcha-response' => [
'required' => 'Please verify that you are not a robot.',
'h_captcha' => 'Captcha error! try again later or contact site admin.',
],
],
For some reason after doing the installation step I don't see this package in the composer discovered packages, and I get the error
Method Illuminate\\Validation\\Validator::validateHCaptcha does not exist.
So clearly the package isn't installing correctly
Edit: Okay, after php artisan config:cache
it now loads correctly
HCaptcha is having a few specific options that should be configurable, see the related documentation there https://docs.hcaptcha.com/configuration/
I am actually directly loading the script this way for the moment:
<script src="https://hcaptcha.com/1/api.js?recaptchacompat=off" async="" defer=""></script>
Do you have any tips on how to integrate with Livewire? I tried to include it in a modal, but the captcha does not appear.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.