From cbdd0a82177a3c8b14df296bfd441090322962cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=2E=20Nagy=20Gerg=C5=91?= Date: Fri, 5 Jan 2024 21:46:51 +0100 Subject: [PATCH] add description to variant model --- .../migrations/2020_01_01_000900_create_bazar_variants_table.php | 1 + src/Models/Variant.php | 1 + 2 files changed, 2 insertions(+) diff --git a/database/migrations/2020_01_01_000900_create_bazar_variants_table.php b/database/migrations/2020_01_01_000900_create_bazar_variants_table.php index 6dea22dc..48dfa020 100644 --- a/database/migrations/2020_01_01_000900_create_bazar_variants_table.php +++ b/database/migrations/2020_01_01_000900_create_bazar_variants_table.php @@ -15,6 +15,7 @@ public function up(): void $table->id(); $table->foreignId('product_id')->constrained('bazar_products')->cascadeOnDelete(); $table->string('alias')->nullable(); + $table->text('description')->nullable(); $table->timestamps(); $table->softDeletes(); diff --git a/src/Models/Variant.php b/src/Models/Variant.php index f97cde7a..ca3a8f49 100644 --- a/src/Models/Variant.php +++ b/src/Models/Variant.php @@ -40,6 +40,7 @@ class Variant extends Model implements Contract */ protected $fillable = [ 'alias', + 'description', ]; /**