|
<?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) : '';
|
|
}
|
|
} |