dongpin1059 2016-05-10 09:40
浏览 108

在Laravel forge上遇到类/服务识别问题

So I'm trying to push my code to forge and on doing so I receive the following error message:

[Symfony\Component\Debug\Exception\FatalThrowableError]                     
  Fatal error: Class 'Skovmand\Mailchimp\MailchimpServiceProvider' not found  

Script php artisan optimize handling the post-install-cmd event returned with an error

  [RuntimeException]  
  Error Output:       

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...

This is, I believe to the following package: https://github.com/skovmand/mailchimp-laravel.

I'm not sure what could be going wrong here. There doesn't seem to be any issues with the declaration of the service that I've set in the config/app.php file under the service providers like this: Skovmand\Mailchimp\MailchimpServiceProvider::class.

So I would appreciate any responses here.

Thanks!

  • 写回答

2条回答 默认 最新

  • drll42469 2016-05-10 09:48
    关注

    First, check if files are in a vendor directory, they could not be installed. If the files are there, try to run composer dumpauto -o.

    If command didn't help, try to manually delete autoload files and run the command again.

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度