我正在通过https://laravel.com/docs/5.2/billing按照说明进行操作 设置收银员,希望Stripe!
这是我的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.*"
},
这是我的证据,即收银员在(通过终端)
./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
这是/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,
然后是错误
FatalErrorException in ProviderRepository.php line 146:
Class 'Laravel\Cashier\CashierServiceProvider' not found
我已经运行了以下命令
php artisan
:看看收银员是否可用且不是composer update
但没有更新内容composer require laravel/cashier=~6.0
但没有更新内容答案 0 :(得分:0)
php artisan optimize
php artisan config:cache
php artisan route:cache
尝试这些命令,然后运行composer install&&作曲家更新。