1. Go to this page and download the library: Download hirenkeraliya/lara-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/ */
use Hirenkeraliya\LaraCaptcha\app\Http\Middleware\VerifyCaptcha;
Route::post('contact-us', [ContactUsController::class, 'index'])->name('front.contact_us')->middleware(VerifyCaptcha::class);
use Hirenkeraliya\LaraCaptcha\app\Http\Middleware\VerifyCaptcha;
Route::group(['middleware' => VerifyCaptcha::class], function () {
Route::post('contact-us', [ContactUsController::class, 'index'])->name('front.contact_us');
});
Route::middleware([VerifyCaptcha::class])->group(function () {
Route::post('contact-us', [ContactUsController::class, 'index'])->name('front.contact_us');
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.