PHP code example of va / cutlet-recaptcha
1. Go to this page and download the library: Download va/cutlet-recaptcha 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/ */
va / cutlet-recaptcha example snippets
php artisan vendor:publish --tag=cutlet-recaptcha
protected function validateLogin(Request $request)
{
$request->validate([
$this->username() => ['
]);
}
return [
'language' => 'fa',
'site_key' => env('GOOGLE_RECAPTCAH_SITE_KEY'),
'secret_key' => env('GOOGLE_RECAPTCAH_SECRET_KEY'),
'message' => 'شما به عنوان ربات تشخیص داده شدهاید'
];