Google reCaptcha with Laravel

Laravel 8 Google Captcha without any third party package. First add below keys in .env file GOOGLE_CAPTCHA_SITE_KEY=6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI GOOGLE_CAPTCHA_SECRET_KEY=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe GOOGLE_CAPTCHA_VERIFICATION_URL=https://www.google.com/recaptcha/api/siteverify Note:these are test keys from google document. then in config folder create a file called google_captcha.php <?php return [ ‘site_key’ => env(‘GOOGLE_CAPTCHA_SITE_KEY’), ‘secret_key’ => env(‘GOOGLE_CAPTCHA_SECRET_KEY’), ‘gc_verification_url’ => env(‘GOOGLE_CAPTCHA_VERIFICATION_URL’), ‘error_codes’ => [ “missing-input-secret” => “The secret parameter … Read more

Error “Target class controller does not exist” when using Laravel 8

You are using Laravel 8. In a fresh install of Laravel 8, there is no namespace prefix being applied to your route groups that your routes are loaded into. “In previous releases of Laravel, the RouteServiceProvider contained a $namespace property. This property’s value would automatically be prefixed onto controller route definitions and calls to the … Read more

Target class does not exist. problem in laravel 8 [duplicate]

Laravel 8 Update the way to write routes ref link https://laravel.com/docs/8.x/upgrade in laravel 8 you need to use like use App\Http\Controllers\SayhelloController; Route::get(‘/users/{name?}’ , [SayhelloController::class,’index’]); or Route::get(“https://stackoverflow.com/users”, ‘App\Http\Controllers\UserController@index’); If you want to use old way then in RouteServiceProvider.php add this line /** * This namespace is applied to your controller routes. * * In addition, it … Read more

Target class controller does not exist – Laravel 8

You are using Laravel 8. In a fresh install of Laravel 8, there is no namespace prefix being applied to your route groups that your routes are loaded into. “In previous releases of Laravel, the RouteServiceProvider contained a $namespace property. This property’s value would automatically be prefixed onto controller route definitions and calls to the … Read more