PHP code example of atendwa / laravel-honeypot

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

    

atendwa / laravel-honeypot example snippets


    Route::post('/submit-comment', [commentController::class, 'store'])
        ->middleware('prevent-spam');
    

    <form action="/submit-comment" method="POST">
        @csrf
   
        <x-honeypot::honeypot-fields/>
        
        // other input fields
    </form>
    
bash
  php artisan vendor:publish --provider="Atendwa\Honeypot\HoneypotServiceProvider" --tag="config"