PHP code example of dsoloview / laravel-yandex-captcha
1. Go to this page and download the library: Download dsoloview/laravel-yandex-captcha 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/ */
dsoloview / laravel-yandex-captcha example snippets
namespace App\Http\Requests;
use Dsoloview\YandexCaptcha\Rules\YandexCaptcha;
use Illuminate\Foundation\Http\FormRequest;
class LoginRequest extends FormRequest
{
public function rules(): array
{
return [
'email' => ['
bash
php artisan vendor:publish --tag=yandex-captcha-config
bash
php artisan vendor:publish --tag=yandex-captcha-view