dongxuxian6930 2019-03-07 12:04
浏览 67

错误:找不到“Greggilbert \ Recaptcha \ RecaptchaServiceProvider”类 - Laravel - No Composer / Artisan

Added recaptcha package manually - but getting this error

ERROR: Class 'Greggilbert\Recaptcha\RecaptchaServiceProvider' not found

Done all necessary steps.

  • Added the package to the vendor folder
  • Added a reference in \vendor\composer\autoload_namespaces.php
  • Added a reference in \vendor\composer\autoload_psr4.php
  • Copied recaptcha.php to config

Any other steps that I missed?

Any option to delete all cache manually?

  • 写回答

1条回答 默认 最新

  • duangan6636 2019-03-15 05:43
    关注

    I installed composer in production and ran this sudo composer dump-autoload command. That solved the issue. It's not an ideal answer for the question.

    Suggest if it's possible to clear the laravel cache manually (FTP), so the not found error will not be happening

    评论

报告相同问题?