15 lines
284 B
PHP
15 lines
284 B
PHP
|
<?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) : '';
|
||
|
}
|
||
|
}
|