私が追加しました:
"laravel/cashier": "^6.0"
composer.json へ
と:
Laravel\Cashier\CashierServiceProvider::class,
config フォルダーの providers 配列の app.php に。
次に composer update を実行しましたが、実行した場合:
php artisan
そこにレジのコマンドが表示されません。手順がありませんか?
私が追加しました:
"laravel/cashier": "^6.0"
composer.json へ
と:
Laravel\Cashier\CashierServiceProvider::class,
config フォルダーの providers 配列の app.php に。
次に composer update を実行しましたが、実行した場合:
php artisan
そこにレジのコマンドが表示されません。手順がありませんか?
そのコマンドは 5.2 で削除されたようです。5.2のドキュメントを見ると更新されており、artisan ヘルパー `$php artisan cashier:table users の使用への参照はもうありません。
むしろ、ヘルパーを使用するのではなく、手動で移行を作成する必要があるようです。ドキュメントから:
ユーザーテーブルの移行 (または課金に関連付けるエンティティ) を更新します。
Schema::table('users', function ($table) {
$table->string('stripe_id')->nullable();
$table->string('card_brand')->nullable();
$table->string('card_last_four')->nullable();
});
サブスクリプション テーブルを作成します。
Schema::create('subscriptions', function ($table) {
$table->increments('id');
$table->integer('user_id');
$table->string('name');
$table->string('stripe_id');
$table->string('stripe_plan');
$table->integer('quantity');
$table->timestamp('trial_ends_at')->nullable();
$table->timestamp('ends_at')->nullable();
$table->timestamps();
});
次に、移行コマンドを実行します$ php artisan migrate
この変更の理由や、将来的にこの職人のコマンドを再導入するかどうかについての情報を見つけることができませんでした. 私はそれが設計によると仮定します。
それが役に立てば幸い!