mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-16 05:13:45 +02:00
Replace with corrected static calls
This commit is contained in:
@@ -26,8 +26,8 @@ class LocationTransformer extends Transformer
|
||||
'id' => $model->id,
|
||||
'short' => $model->short,
|
||||
'long' => $model->long,
|
||||
$model->getUpdatedAtColumn() => $this->formatTimestamp($model->updated_at),
|
||||
$model->getCreatedAtColumn() => $this->formatTimestamp($model->created_at),
|
||||
$model->getUpdatedAtColumn() => self::formatTimestamp($model->updated_at),
|
||||
$model->getCreatedAtColumn() => self::formatTimestamp($model->created_at),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@ class NodeTransformer extends Transformer
|
||||
{
|
||||
$response = $model->toArray();
|
||||
|
||||
$response[$model->getUpdatedAtColumn()] = $this->formatTimestamp($model->updated_at);
|
||||
$response[$model->getCreatedAtColumn()] = $this->formatTimestamp($model->created_at);
|
||||
$response[$model->getUpdatedAtColumn()] = self::formatTimestamp($model->updated_at);
|
||||
$response[$model->getCreatedAtColumn()] = self::formatTimestamp($model->created_at);
|
||||
|
||||
$resources = $model->servers()->select(['memory', 'disk'])->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user