Browse Source

自动切换模式2

master
wanghongjun 3 weeks ago
parent
commit
58989825f9
  1. 10
      app/Models/ParkingSpace.php

10
app/Models/ParkingSpace.php

@ -35,20 +35,14 @@ class ParkingSpace extends Model
{
return is_null($value)
? ''
: get_datetime(
'date_time',
strtotime($value)
);
: date('Y-m-d H:i', strtotime($value));
}
public function getBerthingTimeAttribute($value): string
{
return is_null($value)
? ''
: get_datetime(
'date_time',
strtotime($value)
);
: date('Y-m-d H:i', strtotime($value));
}
public static function getNumber($id)

Loading…
Cancel
Save