feat(contact): Add hCaptcha integration, Discord alert for contact

- Added hCaptcha validation to the contact form.
- Integrated hCaptcha configuration in the application.
- Implemented Discord alerts for new contact submissions with detailed content.
This commit is contained in:
Rico van Zelst
2024-02-24 21:52:00 +01:00
parent 1ed7856985
commit 8bdcd5b086
6 changed files with 131 additions and 38 deletions

10
config/HCaptcha.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
return [
'secret' => env('HCAPTCHA_SECRET'),
'sitekey' => env('HCAPTCHA_SITEKEY'),
'server-get-config' => false,
'options' => [
'timeout' => 30,
],
];

View File

@@ -170,6 +170,7 @@ return [
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\RouteServiceProvider::class,
Scyllaly\HCaptcha\HCaptchaServiceProvider::class,
])->toArray(),
/*
@@ -184,6 +185,7 @@ return [
*/
'aliases' => Facade::defaultAliases()->merge([
'HCaptcha' => Scyllaly\HCaptcha\Facades\HCaptcha::class,
// 'Example' => App\Facades\Example::class,
])->toArray(),