diff --git a/app/Model/v3/FinancialRecord.php b/app/Model/v3/FinancialRecord.php index ace1d98..e214652 100644 --- a/app/Model/v3/FinancialRecord.php +++ b/app/Model/v3/FinancialRecord.php @@ -92,6 +92,14 @@ class FinancialRecord extends Model 'comment', 'status', ]; + protected $appends = [ + 'created_at_text', + ]; + + public function getCreatedAtTextAttribute() + { + return date('Y-m-d H:i:s', $this->attributes['created_at']); + } /** * The attributes that should be cast to native types. *