-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
26 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,18 +20,26 @@ | |
/** | ||
* Setting Turnstile keys to always pass the request | ||
* | ||
* @see https://developers.cloudflare.com/turnstile/reference/testing/#dummy-sitekeys-and-secret-keys | ||
* @link https://developers.cloudflare.com/turnstile/reference/testing/#dummy-sitekeys-and-secret-keys | ||
*/ | ||
Config::set('turnstile', [ | ||
'turnstile_site_key' => '1x00000000000000000000AA', | ||
'turnstile_secret_key' => '1x0000000000000000000000000000000AA', | ||
]); | ||
|
||
/** | ||
* In this context, Alpine.js didn't function as expected due to the need to pass the `cf-captcha` field. | ||
* The value of the mentioned key is dynamically determined by the response from Cloudflare (CF) in the UI. | ||
* For more information, refer to the Cloudflare Turnstile documentation: | ||
* | ||
* @link https://developers.cloudflare.com/turnstile/ | ||
*/ | ||
livewire(ContactUs::class) | ||
->fillForm([ | ||
'name' => 'John Doe', | ||
'email' => '[email protected]', | ||
'content' => 'This is a simple message', | ||
'cf-captcha' => 'XXXX.DUMMY.TOKEN.XXXX', | ||
]) | ||
->call('send') | ||
->assertHasNoFormErrors(); | ||
|
@@ -44,7 +52,7 @@ | |
/** | ||
* Setting Turnstile keys to always block the request | ||
* | ||
* @see https://developers.cloudflare.com/turnstile/reference/testing/#dummy-sitekeys-and-secret-keys | ||
* @link https://developers.cloudflare.com/turnstile/reference/testing/#dummy-sitekeys-and-secret-keys | ||
*/ | ||
Config::set('turnstile', [ | ||
'turnstile_site_key' => '2x00000000000000000000AB', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<x-filament-panels::page.simple> | ||
<div> | ||
<x-filament-panels::form wire:submit="send"> | ||
{{ $this->form }} | ||
|
||
<x-filament-panels::form.actions | ||
:actions="$this->getCachedFormActions()" | ||
:full-width="$this->hasFullWidthFormActions()" | ||
/> | ||
<button>Send</button> | ||
</x-filament-panels::form> | ||
</x-filament-panels::page.simple> | ||
</div> |