|
|
@@ -12,13 +12,14 @@ class HolidayResource extends JsonResource
|
|
|
public function toArray(Request $request): array
|
|
|
{
|
|
|
return [
|
|
|
- 'id' => $this->id,
|
|
|
- 'unit_id' => $this->unit_id,
|
|
|
- 'holiday_date' => $this->holiday_date?->format('Y-m-d'),
|
|
|
- 'description' => $this->description,
|
|
|
- 'type' => $this->type ?? 'feriado',
|
|
|
- 'created_at' => $this->created_at?->format('Y-m-d H:i:s'),
|
|
|
- 'updated_at' => $this->updated_at?->format('Y-m-d H:i:s'),
|
|
|
+ 'id' => $this->id,
|
|
|
+ 'unit_id' => $this->unit_id,
|
|
|
+ 'base_holiday_id' => $this->base_holiday_id,
|
|
|
+ 'holiday_date' => $this->holiday_date?->format('Y-m-d'),
|
|
|
+ 'description' => $this->description,
|
|
|
+ 'type' => $this->type ?? 'feriado',
|
|
|
+ 'created_at' => $this->created_at?->format('Y-m-d H:i:s'),
|
|
|
+ 'updated_at' => $this->updated_at?->format('Y-m-d H:i:s'),
|
|
|
];
|
|
|
}
|
|
|
|