Cashier Register is a simple quota feature usage tracker for Laravel Cashier subscriptions.
used_total
value (https://github.com/renoki-co/cashier-register/pull/50)getTotalUsedQuota()
to get the used_total
value for a subscription featureUpdated tests & minimum requirements
Before upgrading the package from 5.x, make sure to check the upgrade guide for Stripe Cashier 13.x: https://github.com/laravel/cashier-stripe/blob/13.x/UPGRADE.md
PR: https://github.com/renoki-co/cashier-register/pull/43
This update requires a new field in the database called used_total
:
Schema::create('subscription_usages', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('subscription_id');
$table->string('feature_id');
$table->unsignedSmallInteger('used');
+ $table->unsignedSmallInteger('used_total');
$table->timestamps();
});
Saas::currency()
method to set the global currency (https://github.com/renoki-co/cashier-register/commit/b346a3747f1f9c5b7824f8a0548fe57f9765d9a7)price
key for reverse-compatibility (https://github.com/renoki-co/cashier-register/commit/d66d0f47b8a1239e78486f1ff0a6727aca3d7e7c)->currency()
method to specify the currency only once (https://github.com/renoki-co/cashier-register/commit/4334c052908fb0a34f901fb0af7b631b4d512f6f, https://github.com/renoki-co/cashier-register/commit/2fd9bdbf7372ac09b4147383f9211667e97b8eb0)->popular()
method for plans (https://github.com/renoki-co/cashier-register/pull/28)Removed doctrine/dbal
as a dependency