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) return is_null($value)
? '' ? ''
: get_datetime( : date('Y-m-d H:i', strtotime($value));
'date_time',
strtotime($value)
);
} }
public function getBerthingTimeAttribute($value): string public function getBerthingTimeAttribute($value): string
{ {
return is_null($value) return is_null($value)
? '' ? ''
: get_datetime( : date('Y-m-d H:i', strtotime($value));
'date_time',
strtotime($value)
);
} }
public static function getNumber($id) public static function getNumber($id)

Loading…
Cancel
Save