Replies: 3 comments
-
Feel free to submit a PR with the desired changes or nah 🙂 |
Beta Was this translation helpful? Give feedback.
-
there is an api to do this but this package requires the property to be typed for example, we could do: use Spatie\Honeypot\Http\Livewire\Concerns\UsesSpamProtection;
use Spatie\Honeypot\Http\Livewire\Concerns\HoneypotData;
use function Livewire\Volt\{uses, state};
uses(UsesSpamProtection::class);
state([
'extraFields' => new HoneypotData,
]);
$register = function () {
$this->protectAgainstSpam();
//
}; however this throws an error because we have not explicitly typed the |
Beta Was this translation helpful? Give feedback.
-
Hi @jdion84 and @freekmurze , created a PR to update the docs with instructions on how to use the package with Volt in functional syntax :) #125 |
Beta Was this translation helpful? Give feedback.
-
will this package become compatible with livewire volt in near future or nah?
Beta Was this translation helpful? Give feedback.
All reactions