Ken 2 недель назад
Родитель
Сommit
ef8240031c
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      app/Models/Withdraw.php

+ 4 - 2
app/Models/Withdraw.php

@@ -2,14 +2,16 @@
 
 namespace App\Models;
 
+use Illuminate\Database\Eloquent\Relations\BelongsTo;
+
 class Withdraw extends BaseModel
 {
 
     protected $table = 'withdraws';
     protected $fillable = ['member_id', 'amount', 'service_charge', 'to_account', 'after_balance', 'address', 'status', 'remark'];
+    protected $hidden = ['created_at'];
 
-
-    public function member(): \Illuminate\Database\Eloquent\Relations\BelongsTo
+    public function member(): BelongsTo
     {
         return $this->belongsTo(User::class, 'member_id', 'member_id')
             ->select(['id', 'member_id', 'username', 'first_name']);