简体   繁体   English

尝试在 Laravel 5.4.36 上安装 Cashier

[英]Trying to install Cashier on Laravel 5.4.36

I am using Laravel 5.4.36 and I am trying to install Cashier using these steps: https://www.nicesnippets.com/blog/laravel-7-cashier-stripe-subscription-tutorial我正在使用 Laravel 5.4.36,我正在尝试使用以下步骤安装 Cashier: https://www.nicesnippets.com/blog/laravel-7-cashier-stripe-subscription-tutorial

However when I try to run this line:但是,当我尝试运行此行时:

sudo composer require laravel/cashier

I get this error:我收到此错误:

Problem 1
    - laravel/cashier[v12.6.0, ..., v12.6.1] require illuminate/contracts ^6.0|^7.0|^8.0 -> found illuminate/contra
cts[v6.0.0, ..., v6.20.7, v7.0.0, ..., v7.30.0, v8.0.0, ..., v8.19.0] but these were not loaded, likely because it 
conflicts with another require.
    - Root composer.json requires laravel/cashier ^12.6 -> satisfiable by laravel/cashier[v12.6.0, v12.6.1].

What am I doing wrong and how do I fix this?我做错了什么,我该如何解决这个问题?

Thanks,谢谢,

When you do当你这样做

composer require laravel/cashier

this will install the current version of the cashier package that works with the current version of Laravel.这将安装与当前版本的 Laravel 一起使用的收银台 package 的当前版本。 You have to check what version of cashier (if any), your current Laravel version installed, supports.您必须检查您当前安装的 Laravel 版本支持的收银台版本(如果有)。

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

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