PHP code example of amiralishabani / laravel-aash-captcha

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

    

amiralishabani / laravel-aash-captcha example snippets


use AashCaptcha\Facades\AashCaptcha;

public function submit(Request $request)
{
    if (!AashCaptcha::check($request->input('captcha'))) {
        return back()->withErrors(['captcha' => 'Invalid CAPTCHA'])->withInput();
    }

    // Proceed with your form logic...
}

php artisan vendor:publish --tag=aash-captcha