From 1e7220d36840f256b8cad4b57f727b3cbf5b2572 Mon Sep 17 00:00:00 2001 From: Lucas Vinicius Date: Thu, 19 May 2022 19:41:57 -0300 Subject: [PATCH] Rename quote field to quota --- database/factories/FeatureFactory.php | 12 ++++++------ .../2022_02_01_235540_create_features_table.php | 2 +- src/Models/Feature.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/database/factories/FeatureFactory.php b/database/factories/FeatureFactory.php index 51eddfd..1289e12 100644 --- a/database/factories/FeatureFactory.php +++ b/database/factories/FeatureFactory.php @@ -27,7 +27,7 @@ public function definition() PeriodicityType::Week, PeriodicityType::Day, ]), - 'quote' => false, + 'quota' => false, ]; } @@ -41,27 +41,27 @@ public function consumable() public function notConsumable() { return $this->state(fn (array $attributes) => [ - 'quote' => false, + 'quota' => false, 'consumable' => false, 'periodicity' => null, 'periodicity_type' => null, ]); } - public function quote() + public function quota() { return $this->state(fn (array $attributes) => [ 'consumable' => true, - 'quote' => true, + 'quota' => true, 'periodicity' => null, 'periodicity_type' => null, ]); } - public function notQuote() + public function notQuota() { return $this->state(fn (array $attributes) => [ - 'quote' => false, + 'quota' => false, ]); } } diff --git a/database/migrations/2022_02_01_235540_create_features_table.php b/database/migrations/2022_02_01_235540_create_features_table.php index f45cc73..434a288 100644 --- a/database/migrations/2022_02_01_235540_create_features_table.php +++ b/database/migrations/2022_02_01_235540_create_features_table.php @@ -16,7 +16,7 @@ public function up() $table->id(); $table->string('name'); $table->boolean('consumable'); - $table->boolean('quote')->default(false); + $table->boolean('quota')->default(false); $table->unsignedInteger('periodicity')->nullable(); $table->string('periodicity_type')->nullable(); $table->softDeletes(); diff --git a/src/Models/Feature.php b/src/Models/Feature.php index 26875dd..8003106 100644 --- a/src/Models/Feature.php +++ b/src/Models/Feature.php @@ -18,7 +18,7 @@ class Feature extends Model 'name', 'periodicity_type', 'periodicity', - 'quote', + 'quota', ]; public function plans()