未找到 MailGun 和 L5 Class 'GuzzleHttp\Post\PostFile'

MailGun and L5 Class 'GuzzleHttp\Post\PostFile' not found

我正在尝试将 Mailgun 与 Laravel 5.0 和内置身份验证功能一起使用。

当运行/password/email我得到FatalErrorException in MailgunTransport.php line 79: Class 'GuzzleHttp\Post\PostFile' not found

这是我的一部分 composer.json:

"require": {
    "laravel/framework": "5.0.*",
    "guzzlehttp/guzzle": "~6.0"
},

会不会是 Guzzle 和 Laravel 的版本不能很好地协同工作?

将 guzzle 降级到 ~5.0 会导致我遇到 400 个错误的请求错误。

如有任何帮助,我们将不胜感激。谢谢!

就像通过电子邮件激活我的帐户一样简单。由于没有经过验证的帐户,到处都是错误。

在回购中检查 Post 文件后,我也降级到 Guzzle ~5.0。

通过 运行 在你的命令行

这个命令降级你的 guzzle
composer require guzzlehttp/guzzle ~5.0