Ken 1 周之前
父節點
當前提交
e1b10f13ee
共有 1 個文件被更改,包括 13 次插入2 次删除
  1. 13 2
      app/Models/Withdraw.php

+ 13 - 2
app/Models/Withdraw.php

@@ -8,12 +8,23 @@ class Withdraw extends BaseModel
 {
 {
 
 
     protected $table = 'withdraws';
     protected $table = 'withdraws';
-    protected $fillable = ['member_id', 'amount', 'service_charge', 'admin_note', 'to_account', 'after_balance', 'address', 'status', 'remark'];
+    protected $fillable = [
+        'member_id',
+        'amount',
+        'service_charge',
+        'to_account',
+        'address',
+        'exchange_rate',
+        'status',
+        'after_balance',
+        'remark',
+        'admin_note',
+    ];
     protected $hidden = [];
     protected $hidden = [];
 
 
     public function member(): BelongsTo
     public function member(): BelongsTo
     {
     {
         return $this->belongsTo(User::class, 'member_id', 'member_id')
         return $this->belongsTo(User::class, 'member_id', 'member_id')
-            ->select([ 'member_id', 'username', 'first_name']);
+            ->select(['member_id', 'username', 'first_name']);
     }
     }
 }
 }