Skip to content

Commit 7245040

Browse files
committed
Fixed the trancation table to have an amount that has decimals. Also
made the amount fillable.
1 parent cfd8c01 commit 7245040

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

migrations/2018_01_05_165234_create_transactions_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function up()
1616
Schema::create('transactions', function (Blueprint $table) {
1717
$table->increments('id');
1818
$table->string('merchant_id');
19-
$table->string('amount');
19+
$table->decimal('amount');
2020
$table->string('redirect_to');
2121
$table->string('transaction', 100)->nullable();
2222
$table->tinyInteger('status')->default(0);

src/app/Models/Transaction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class Transaction extends Model
2525
'transaction',
2626
'merchant_id',
2727
'status',
28+
'amount',
2829
'redirect_to',
2930
];
3031

0 commit comments

Comments
 (0)