Ken 2 周之前
父节点
当前提交
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']);