PHP code example of appel / honeypot

1. Go to this page and download the library: Download appel/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/ */

    

appel / honeypot example snippets


$this->validate($request, [
    ...
    'honeypot_name' => 'honeypot',
    'honeypot_time' => '

return [
    ...
    /**
     * Hide the fields by setting the display property of the outer div to none,
     * or by moving it off-screen. Accepted values: 'hide', 'off-screen'
     */
    'hide_mode'     => 'off-screen'
];

php artisan vendor:publish --provider="Appel\Honeypot\Providers\HoneypotServiceProvider"

php artisan vendor:publish --provider="Appel\Honeypot\Providers\HoneypotServiceProvider" --tag="config"
php artisan vendor:publish --provider="Appel\Honeypot\Providers\HoneypotServiceProvider" --tag="lang"
html
<form action="..." method="...">
    {!! Honeypot::make('honeypot_name', 'honeypot_time') !!}
</form>
html
<form action="..." method="...">
    {!! honeypot('honeypot_name', 'honeypot_time') !!}
</form>
html
<form action="..." method="...">
    @honeypot('honeypot_name', 'honeypot_time')
</form>