diff --git a/app/Model/v3/StoreWithdrawal.php b/app/Model/v3/StoreWithdrawal.php index f063b7b..a369aa9 100644 --- a/app/Model/v3/StoreWithdrawal.php +++ b/app/Model/v3/StoreWithdrawal.php @@ -10,7 +10,8 @@ class StoreWithdrawal extends Model protected $appends = [ 'state_text', - 'check_time_text' + 'check_time_text', + 'created_at_text' ]; public function getStateTextAttribute() @@ -26,4 +27,9 @@ class StoreWithdrawal extends Model return date('Y-m-d H:i:s', $this->attributes['check_time']); } } + + public function getCreatedAtTimeTextAttribute() + { + return date('Y-m-d H:i:s', $this->attributes['created_at']); + } } \ No newline at end of file