PHP code example of jolimardi / laravel-honeypot
1. Go to this page and download the library: Download jolimardi/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/ */
jolimardi / laravel-honeypot example snippets
use WebLogin\LaravelHoneypot\Rules\Honeypot;
...
$request->validate([
'title' => ['
'honeypot' => [
'pot' => "Message when the field that should be empty is filled",
'time' => "Message when the form is submitted too quickly",
],
bash
php artisan vendor:publish --provider="WebLogin\LaravelHoneypot\ServiceProvider"
html
<form method="POST">
<x-honeypot name="field-name"/>
...
</form>