Ken 1 hafta önce
ebeveyn
işleme
e1b10f13ee
1 değiştirilmiş dosya ile 13 ekleme ve 2 silme
  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 $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 = [];
 
     public function member(): BelongsTo
     {
         return $this->belongsTo(User::class, 'member_id', 'member_id')
-            ->select([ 'member_id', 'username', 'first_name']);
+            ->select(['member_id', 'username', 'first_name']);
     }
 }