PHP code example of lucbu / laravelcaptcha

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

    

lucbu / laravelcaptcha example snippets


'Lucbu\LaravelCaptcha\CaptchaServiceProvider',

@

public function rules() {
    return [
        'captcha' => '

 namespace App\Http\Controllers;

use Lucbu\LaravelCaptcha\Services\Captcha;

class ExampleController {
    public function exampleFunction(){
        Captcha::generateCaptcha();
    }
}

php artisan vendor:publish --provider="Lucbu\LaravelCaptcha\CaptchaServiceProvider"