Skip to content

Refactor form method type, form method route, and component name in t… #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@ return [
Include form method type, form method route, spam strap in the start and end of the form, form key, fake submit button, and a real submit button.

```php
<form method="POST" action="{{ route('forms.validate') }}"
<input type="text" name="isSpam" style="display:none" /> // Near the start
<form method="POST" action="{{ route('forms.validate') }}">
// Near the start
<input type="text" name="isSpam" style="display:none" />

<x-forms::meta /> // Near the end
// Near the end
<x-forms::meta />
<input type="hidden" name="form_key" value="free_estimate" />
<input type="text" name="gotcha" class="hidden" />
<x-forms::buttons.fake-button :buttonText="'Submit'" />
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/thank-you.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<x-layout-wrapper::layouts.app>
<x-layouts-wrapper::layouts.app>
<x-slot name="slot">
<div class="flex h-screen justify-center items-center">
<div class="prose text-center justify-center mx-auto text-black">
Expand All @@ -11,4 +11,4 @@
</div>
</div>
</x-slot>
</x-layout-wrapper::layouts.app>
</x-layouts-wrapper::layouts.app>