Browse Source

商家收入明细

master
Lemon 6 years ago
parent
commit
0d6e3ecf2e
  1. 8
      app/Model/v3/FinancialRecord.php

8
app/Model/v3/FinancialRecord.php

@ -92,6 +92,14 @@ class FinancialRecord extends Model
'comment', 'comment',
'status', '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. * The attributes that should be cast to native types.
* *

Loading…
Cancel
Save