thinhbuzz / laravel-google-captcha

Google captcha for Laravel 5, Laravel 6, Laravel 7, Laravel 8, Laravel 9 and Laravel 10, support multiple captcha on page
MIT License
200 stars 32 forks source link

Fatal Error Undefined Constant #15

Closed brian-lamb-software-engineer closed 6 years ago

brian-lamb-software-engineer commented 6 years ago

Fatal error: Undefined constant 'Buzz\LaravelGoogleCaptcha\CaptchaServiceProvider' from the readme, chaging this 'Buzz\LaravelGoogleCaptcha\CaptchaServiceProvider', to this Buzz\LaravelGoogleCaptcha\CaptchaServiceProvider::class, seems to fix the problem.

Briareos17 commented 6 years ago

@brian-lamb-software-engineer It is because you pasted Buzz\LaravelGoogleCaptcha\CaptchaServiceProvider without quotes, so php recognize it as constant, not as string.