<?php
namespace App\Http\Controllers;

use Illuminate\Http\Request;

class CaptchaController extends Controller
{
    public function validateCaptcha(Request $request)
    {
        $request->validate([
            'captcha' => 'required|captcha',
        ]);

        // Handle form submission after CAPTCHA validation
        return redirect()->back()->with('success', 'Captcha passed successfully.');
    }
}
