develop
parent
95855a2ba7
commit
b8b4762539
|
|
@ -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')) ?: [],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue