SysField.php 300 B

12345678910111213141516171819
  1. <?php
  2. namespace app\model;
  3. use support\Model;
  4. class SysField extends Model
  5. {
  6. public $table = 'sys_field';
  7. public $primaryKey = 'field_id';
  8. public const UPDATED_AT = null;
  9. public function getFieldAddtimesAttribute($value)
  10. {
  11. return date('Y-m-d H:i:s', $value);
  12. }
  13. }