简体   繁体   中英

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. But I want to use laravel/cashier 6.0 in laravel 5.8. I have installed it by "composer require laravel/cashier:6.0" but it throws error something like this. 在此处输入图像描述

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. 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.

In your composer.json , change Carbon version to 1.26.3 . Next, run composer update (not composer install .)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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