简体   繁体   English

如何在 Laravel 5.8 中安装 laravel/cashier 6.0

[英]How to install laravel/cashier 6.0 in Laravel 5.8

everyone.每个人。 Recently I have upgraded my laravel 5.2 project to laravel 5.8.最近我将我的 laravel 5.2 项目升级到 laravel 5.8。 But I want to use laravel/cashier 6.0 in laravel 5.8.但我想在 laravel 5.8 中使用 laravel/cashier 6.0。 I have installed it by "composer require laravel/cashier:6.0" but it throws error something like this.我已经通过“composer require laravel/cashier:6.0”安装了它,但它会抛出类似这样的错误。 在此处输入图像描述

Is there any way to do this for me?有什么办法可以为我做到这一点吗? Thank you.谢谢你。

It seems that Laravel Cashier requires Carbon v1, which is deprecated in Laravel 5.8 If you may use Laravel 5.7 things should go different. It seems that Laravel Cashier requires Carbon v1, which is deprecated in Laravel 5.8 If you may use Laravel 5.7 things should go different. Anyway both Laravel 5.7 and 5.8 are old versions with no long term support, so in that sense, best choice should be Laravel 6 Regards.无论如何,Laravel 5.7 和 5.8 都是没有长期支持的旧版本,所以从这个意义上说,最好的选择应该是 Laravel 6 问候。

In your composer.json , change Carbon version to 1.26.3 .在您的composer.json中,将 Carbon 版本更改为1.26.3 Next, run composer update (not composer install .)接下来,运行composer update (不是composer install 。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM