PHP code example of fussraider / laravel-yandex-captcha

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

    

fussraider / laravel-yandex-captcha example snippets


      
      
    namespace App\Http\Requests;  
      
    use Fussraider\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