WokerTask/app/common/model/vehicle/VehicleRent.php

15 lines
284 B
PHP
Raw Normal View History

2023-12-27 14:06:33 +08:00
<?php
namespace app\common\model\vehicle;
use app\common\model\BaseModel;
class VehicleRent extends BaseModel
{
protected $name = 'vehicle_rent';
public function getRentTimeAttr($value): string
{
return !empty($value) ? date('Y-m-d H:i:s',$value) : '';
}
}