Skip to content

Commit

Permalink
add description to variant model
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 5, 2024
1 parent d7b2c19 commit cbdd0a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
1 change: 1 addition & 0 deletions src/Models/Variant.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class Variant extends Model implements Contract
*/
protected $fillable = [
'alias',
'description',
];

/**
Expand Down

0 comments on commit cbdd0a8

Please sign in to comment.