Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Error :-
Error Code :-
[2024-03-01 09:20:16] local.ERROR: Class "Anhskohbo\NoCaptcha\NoCaptchaServiceProvider" not found {"exception":"[object] (Error(code: 0): Class \"Anhskohbo\\NoCaptcha\\NoCaptchaServiceProvider\" not found at C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\ProviderRepository.php:206)
[stacktrace]
#0 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\ProviderRepository.php(142): Illuminate\\Foundation\\ProviderRepository->createProvider('Anhskohbo\\\\NoCap...')
#1 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\ProviderRepository.php(61): Illuminate\\Foundation\\ProviderRepository->compileManifest(Array)
#2 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php(664): Illuminate\\Foundation\\ProviderRepository->load(Array)
#3 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Bootstrap\\RegisterProviders.php(17): Illuminate\\Foundation\\Application->registerConfiguredProviders()
#4 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Application.php(242): Illuminate\\Foundation\\Bootstrap\\RegisterProviders->bootstrap(Object(Illuminate\\Foundation\\Application))
#5 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(176): Illuminate\\Foundation\\Application->bootstrapWith(Array)
#6 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(160): Illuminate\\Foundation\\Http\\Kernel->bootstrap()
#7 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(134): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))
#8 C:\\xampp-laravel\\htdocs\\Wizbrand\\wz-siteadmin-ms-9\\public\\index.php(51): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))
#9 {main}
Solution:-
Step 1 :- Go to your project terminal and eun the following code which i have given below:-
composer require anhskohbo/no-captcha
Step 2 :- In app/config/app.php
add the following The ServiceProvider to the providers array
Anhskohbo\NoCaptcha\NoCaptchaServiceProvider::class,
Step 3 :- The class alias to the aliases array:
'NoCaptcha' => Anhskohbo\NoCaptcha\Facades\NoCaptcha::class,
Step 4 :- Now you can run your project and your Class “Anhskohbo\NoCaptcha\NoCaptchaServiceProvider” not found issue is solved.