Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
610 views
in Technique[技术] by (71.8m points)

laravel - Laravel从5.8升级到laravel 6-调用未定义的方法Laravel \ Cashier \ Cashier :: useCurrency()(Laravel upgrade from 5.8 to laravel 6 - Call to undefined method LaravelCashierCashier::useCurrency())

I've just tried to upgrade from laravel 5.8 to laravel 6.

(我刚刚尝试从laravel 5.8升级到laravel 6。)

Run composer update and got the following error in the console:

(运行composer update并在控制台中出现以下错误:)

 Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

 SymfonyComponentDebugExceptionFatalThrowableError  : Call to undefined method LaravelCashierCashier::useCurrency()

 at C:wampwwwlaravelmy-projectappProvidersAppServiceProvider.php:34
  30|         Paginator::useBootstrapThree();
  31| 
  32|         Stripe::setApiKey(config('services.stripe.secret'));
  33| 
> 34|         Cashier::useCurrency('gbp', '£');

What does this mean?

(这是什么意思?)

  ask by adam78 translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You'll want to consult the upgrade guide for Cashier.

(您将需要查阅Cashier 的升级指南 。)

The useCurrency method has been replaced by a configuration option in the new Cashier configuration file and the usesCurrency method has been removed.

(useCurrency方法已由新Cashier配置文件中的配置选项替换,并且usesCurrency方法已删除。)

There are a variety of significant changes in Cashier v10.

(Cashier v10有许多重大变化。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...