FarmLand.php 404 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\model;
  3. use support\Model;
  4. class FarmLand extends Model
  5. {
  6. protected $table = 'farm_land';
  7. protected $primaryKey = 'land_id';
  8. protected $dateFormat = 'U';
  9. public const CREATED_AT = 'land_add_time';
  10. public const UPDATED_AT = 'land_update_time';
  11. public function getLandAddTimeAttribute($value){
  12. return date('Y-m-d H:i:s',strtotime($value));
  13. }
  14. }