Ken 1 주 전
부모
커밋
2b988d6640
2개의 변경된 파일2개의 추가작업 그리고 24개의 파일을 삭제
  1. 1 0
      app/Models/Wallet.php
  2. 1 24
      app/Models/Withdraw.php

+ 1 - 0
app/Models/Wallet.php

@@ -1,4 +1,5 @@
 <?php
+
 namespace App\Models;
 class Wallet extends BaseModel
 {

+ 1 - 24
app/Models/Withdraw.php

@@ -1,32 +1,9 @@
 <?php
-
-
 namespace App\Models;
 
-use Illuminate\Database\Eloquent\Builder;
-use Illuminate\Foundation\Auth\User as Authenticatable;
-use Illuminate\Notifications\Notifiable;
-use Laravel\Sanctum\HasApiTokens;
-
-/**
- * @mixin Builder
- * @method static Builder|static where($column, $operator = null, $value = null, $boolean = 'and')
- */
-class Withdraw extends Authenticatable
+class Withdraw extends BaseModel
 {
-    use HasApiTokens, Notifiable;
 
     protected $table = 'withdraws';
-    protected $hidden = ['created_at', 'updated_at'];
     protected $fillable = ['member_id', 'amount', 'service_charge', 'to_account', 'after_balance', 'address', 'status', 'remark'];
-
-    protected function getCreatedAtAttribute($value)
-    {
-        return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
-    }
-
-    protected function getUpdatedAtAttribute($value)
-    {
-        return \Carbon\Carbon::parse($value)->setTimezone('Asia/Shanghai')->format('Y-m-d H:i:s');
-    }
 }