|
@@ -1,32 +1,9 @@
|
|
|
<?php
|
|
<?php
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
namespace App\Models;
|
|
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 $table = 'withdraws';
|
|
|
- protected $hidden = ['created_at', 'updated_at'];
|
|
|
|
|
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 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');
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|