From de5a4428e0d6c0d6d442644daeb191c1476fa4ca Mon Sep 17 00:00:00 2001 From: kejedi <160397814+kejedi@users.noreply.github.com> Date: Mon, 5 Aug 2024 03:26:53 -0400 Subject: [PATCH] Add volt imports to README.md --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index a21a1e4..9af6cb2 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,11 @@ Finally, use the `x-honeypot` in your Livewire Blade component: To use this package in Volt functional syntax, return the `HoneypotData` property from the `guessHoneypotDataProperty` method. ```php +use App\Models\User; +use Spatie\Honeypot\Http\Livewire\Concerns\HoneypotData; +use Spatie\Honeypot\Http\Livewire\Concerns\UsesSpamProtection; +use function Livewire\Volt\{uses, state, mount}; + uses(UsesSpamProtection::class); state([