Skip to content

Commit

Permalink
Merge pull request #135 from kejedi/patch-1
Browse files Browse the repository at this point in the history
Add volt imports to README.md
  • Loading branch information
freekmurze authored Aug 5, 2024
2 parents 65e1598 + de5a442 commit 5d60695
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down

0 comments on commit 5d60695

Please sign in to comment.