Voucherify Update

This commit is contained in:
Dillon Ngo
2025-05-27 23:57:08 +08:00
parent a4f1d069c2
commit ad87f84215
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -2,7 +2,7 @@
namespace App\Http\Resources;
use Carbon\Carbon;
use Illuminate\Http\Resources\Json\JsonResource;
class KeyValueBasicResource extends JsonResource
@@ -19,6 +19,7 @@ class KeyValueBasicResource extends JsonResource
// 'id' => $this->id,
'key' => $this->key,
'value' => $this->value,
'year' => Carbon::parse($this->created_at)->format('Y'),
];
}
}