PHP code example of codenexus / laravel-honeypot

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

    

codenexus / laravel-honeypot example snippets


"    "codenexus/laravel-honeypot": "dev-master"
}

/*
 * Package Service Providers...
 */

...
Codenexus\Honeypot\HoneypotServiceProvider::class,

...
'Honeypot' => Codenexus\Honeypot\Facades\Honeypot::class,

<input type="hidden" id="my_name" name="my_name" value="">
<input type="hidden" name="my_time" value="eyJpdiI6IkxoeWhKc3prN2puZllEajRwZ3lrc0I5bU42bUFWbzF1NEVVOEhxbG9WcFE9IiwidmFsdWUiOiJxNEtBT0NpYW5lUjJvWXp6VE45a1U0V3dNbk9Jd2RUNW42NFpiQWtTRllRPSIsIm1hYyI6IjAyMWQ0NWI1NTVkYTBjZTAxMTdhZmJmNTY0ZDI4Nzg4NzU3ODU4MjM1Y2MxNTVkYjAwNmFhNzBmNTdlNmJmMjkifQ==">

$this->validate($request, [
    ...
    'my_name' => 'honeypot',
    'my_time' => '