[英]Can't install Cashier ~6.0 on Laravel 5.2
I'm following the instructions via https://laravel.com/docs/5.2/billing to setup cashier and hopefully Stripe! 我按照https://laravel.com/docs/5.2/billing的说明设置收银员,希望Stripe!
Here's a portion of my composer.json 这是我的composer.json的一部分
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"laravel/cashier": "~6.0"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~4.0",
"symfony/css-selector": "2.8.*|3.0.*",
"symfony/dom-crawler": "2.8.*|3.0.*"
},
Here's my evidence that Cashier is in (via terminal) 这是我的收银员所在的证据(通过终端)
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing laravel/cashier (v6.0.0)
- Installing laravel/cashier (v6.0.17)
Downloading: 100%
Writing lock file
Generating autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
Generating optimized class loader
And here's a portion of my /config/app.php
这是我的
/config/app.php
的一部分
Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
Illuminate\Session\SessionServiceProvider::class,
Illuminate\Translation\TranslationServiceProvider::class,
Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Laravel\Cashier\CashierServiceProvider::class,
and then the error 然后是错误
FatalErrorException in ProviderRepository.php line 146:
Class 'Laravel\Cashier\CashierServiceProvider' not found
I've ran the following commands 我运行了以下命令
php artisan
: to see if cashier is available and it is not php artisan
:看看收银员是否可用而事实并非如此 composer update
but there's nothing to update composer update
但没有更新 composer require laravel/cashier=~6.0
but there's nothing to update composer require laravel/cashier=~6.0
但没有什么可以更新的 php artisan optimize
php artisan config:cache
php artisan route:cache
Try these commands, and run composer install && composer update. 尝试这些命令,然后运行composer install && composer update。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.