PHP code example of novay / icaptcha
1. Go to this page and download the library: Download novay/icaptcha 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/ */
novay / icaptcha example snippets
// Dalam FormRequest atau Controller
public function store(Request $request)
{
$request->validate([
// ... aturan validasi lainnya
'icaptcha' => 'Logika login atau pendaftaran berhasil
}
bash
php artisan vendor:publish --tag=icaptcha-config # [config/icaptcha.php]
php artisan vendor:publish --tag=icaptcha-views # [resources/views/vendor/icaptcha/icaptcha.blade.php]
php artisan vendor:publish --tag=icaptcha-data # [storage/app/vendor/icaptcha/cities.json]