Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

5.0.0

Compare
Choose a tag to compare
@rennokki rennokki released this 13 May 17:14
· 31 commits to master since this release
8e7f8cf

Before upgrading

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();
});

Changelog

  • Added a new way to sync features' values automatically using defined closures (#34)
  • Added a new Saas::currency() method to set the global currency (b346a37)
  • Added support for custom non-int values passed as values (#36)
  • Identifiable resources can be cast to string when needed (#37)