1
0
Fork 0
develop
panliang 2023-05-25 16:16:50 +08:00
parent 95855a2ba7
commit b8b4762539
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class RegionResource extends JsonResource
'description' => $this->description,
'category_id' => $this->category_id,
'category' => RegionCategoryResource::make($this->whenLoaded('category')),
'current_plant' => RegionPlantResource::make($this->whenLoaded('currentPlant')),
'current_plant' => RegionPlantResource::make($this->whenLoaded('currentPlant')) ?: [],
];
}
}