thinhbuzz / laravel-h-captcha Goto Github PK
View Code? Open in Web Editor NEWhCaptcha for Laravel 5, Laravel 6 and Laravel 7
Home Page: https://packagist.org/packages/buzz/laravel-h-captcha
License: MIT License
hCaptcha for Laravel 5, Laravel 6 and Laravel 7
Home Page: https://packagist.org/packages/buzz/laravel-h-captcha
License: MIT License
Hi there,
I've found that this package prevents php artisan key:generate
from running in projects that already have it installed but don't have a key. Specifically, I experienced this when cloning an existing project to a new computer.
The workaround was to remove this package from the project's composer.json
and config/app.php
, run php artisan key:generate
, and then revert the changes to composer.json
and config/app.php
.
Seems to be happening here:
Here is the stacktrace when running php artisan key:generate
with no APP_KEY
set in .env
and this package installed.
[2021-07-29 00:24:43] local.ERROR: No application encryption key has been specified. {"exception":"[object] (Illuminate\\Encryption\\MissingAppKeyException(code: 0): No application encryption key has been specified. at /project/path/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php:79)
[stacktrace]
#0 /project/path/vendor/laravel/framework/src/Illuminate/Support/helpers.php(263): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}('')
#1 /project/path/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(81): tap('', Object(Closure))
#2 /project/path/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(60): Illuminate\\Encryption\\EncryptionServiceProvider->key(Array)
#3 /project/path/vendor/laravel/framework/src/Illuminate/Encryption/EncryptionServiceProvider.php(32): Illuminate\\Encryption\\EncryptionServiceProvider->parseKey(Array)
#4 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(869): Illuminate\\Encryption\\EncryptionServiceProvider->Illuminate\\Encryption\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#5 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\\Container\\Container->build(Object(Closure))
#6 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(841): Illuminate\\Container\\Container->resolve('encrypter', Array, true)
#7 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(692): Illuminate\\Foundation\\Application->resolve('encrypter', Array)
#8 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(826): Illuminate\\Container\\Container->make('encrypter', Array)
#9 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(1418): Illuminate\\Foundation\\Application->make('encrypter')
#10 /project/path/vendor/laravel/framework/src/Illuminate/Session/SessionManager.php(201): Illuminate\\Container\\Container->offsetGet('encrypter')
#11 /project/path/vendor/laravel/framework/src/Illuminate/Session/SessionManager.php(188): Illuminate\\Session\\SessionManager->buildEncryptedSession(Object(Illuminate\\Session\\FileSessionHandler))
#12 /project/path/vendor/laravel/framework/src/Illuminate/Session/SessionManager.php(74): Illuminate\\Session\\SessionManager->buildSession(Object(Illuminate\\Session\\FileSessionHandler))
#13 /project/path/vendor/laravel/framework/src/Illuminate/Session/SessionManager.php(61): Illuminate\\Session\\SessionManager->createNativeDriver()
#14 /project/path/vendor/laravel/framework/src/Illuminate/Support/Manager.php(105): Illuminate\\Session\\SessionManager->createFileDriver()
#15 /project/path/vendor/laravel/framework/src/Illuminate/Support/Manager.php(80): Illuminate\\Support\\Manager->createDriver('file')
#16 /project/path/vendor/laravel/framework/src/Illuminate/Session/SessionServiceProvider.php(52): Illuminate\\Support\\Manager->driver()
#17 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(869): Illuminate\\Session\\SessionServiceProvider->Illuminate\\Session\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#18 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\\Container\\Container->build(Object(Closure))
#19 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(841): Illuminate\\Container\\Container->resolve('session.store', Array, true)
#20 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(692): Illuminate\\Foundation\\Application->resolve('session.store', Array)
#21 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(826): Illuminate\\Container\\Container->make('session.store', Array)
#22 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(1418): Illuminate\\Foundation\\Application->make('session.store')
#23 /project/path/vendor/laravelcollective/html/src/HtmlServiceProvider.php(57): Illuminate\\Container\\Container->offsetGet('session.store')
#24 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(869): Collective\\Html\\HtmlServiceProvider->Collective\\Html\\{closure}(Object(Illuminate\\Foundation\\Application), Array)
#25 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(754): Illuminate\\Container\\Container->build(Object(Closure))
#26 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(841): Illuminate\\Container\\Container->resolve('form', Array, true)
#27 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(692): Illuminate\\Foundation\\Application->resolve('form', Array)
#28 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(826): Illuminate\\Container\\Container->make('form', Array)
#29 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(1418): Illuminate\\Foundation\\Application->make('form')
#30 /project/path/vendor/buzz/laravel-h-captcha/src/CaptchaServiceProvider.php(62): Illuminate\\Container\\Container->offsetGet('form')
#31 /project/path/vendor/buzz/laravel-h-captcha/src/CaptchaServiceProvider.php(30): Buzz\\LaravelHCaptcha\\CaptchaServiceProvider->bootValidator()
#32 /project/path/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Buzz\\LaravelHCaptcha\\CaptchaServiceProvider->boot()
#33 /project/path/vendor/laravel/framework/src/Illuminate/Container/Util.php(40): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#34 /project/path/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#35 /project/path/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#36 /project/path/vendor/laravel/framework/src/Illuminate/Container/Container.php(651): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#37 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(914): Illuminate\\Container\\Container->call(Array)
#38 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(895): Illuminate\\Foundation\\Application->bootProvider(Object(Buzz\\LaravelHCaptcha\\CaptchaServiceProvider))
#39 [internal function]: Illuminate\\Foundation\\Application->Illuminate\\Foundation\\{closure}(Object(Buzz\\LaravelHCaptcha\\CaptchaServiceProvider), 16)
#40 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(896): array_walk(Array, Object(Closure))
#41 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/BootProviders.php(17): Illuminate\\Foundation\\Application->boot()
#42 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(237): Illuminate\\Foundation\\Bootstrap\\BootProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#43 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(310): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#44 /project/path/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(127): Illuminate\\Foundation\\Console\\Kernel->bootstrap()
#45 /project/path/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#46 {main}
"}
Hello,
Thanks for your package. I m trying to add a Hcaptcha to a llivewire form but i have the same error *No property found for validation: [h-captcha-response]"
Is someone successfully add Hcaptcha to a livewire form ? Or have an tutorial ?
Thanks for your help
Julien
Are there any plans for the package to support Laravel 9 as well?
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.