PHP code example of isapp / statamic-honeypot

1. Go to this page and download the library: Download isapp/statamic-honeypot library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

isapp / statamic-honeypot example snippets

blade
<form method="POST" action="{{ route('contactForm.submit') }}">
    <x-honeypot />
    <input name="myField" type="text">
</form>
blade
<form method="POST" action="{{ route('contactForm.submit') }}">
    @honeypot
    <input name="myField" type="text">
</form>