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;
 namespace App\Models;
 
 
+use Illuminate\Database\Eloquent\Relations\BelongsTo;
+
 class Withdraw extends BaseModel
 class Withdraw extends BaseModel
 {
 {
 
 
     protected $table = 'withdraws';
     protected $table = 'withdraws';
     protected $fillable = ['member_id', 'amount', 'service_charge', 'to_account', 'after_balance', 'address', 'status', 'remark'];
     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')
         return $this->belongsTo(User::class, 'member_id', 'member_id')
             ->select(['id', 'member_id', 'username', 'first_name']);
             ->select(['id', 'member_id', 'username', 'first_name']);