1

我正在按照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但没有什么可更新的
4

1 回答 1

0
php artisan optimize
php artisan config:cache
php artisan route:cache 

试试这些命令,然后运行 ​​composer install && composer update。

于 2016-06-02T23:42:18.727 回答