ApiResponse 헬퍼 확장 및 Tenant 요청 검증 개선

This commit is contained in:
2025-12-24 19:48:15 +09:00
parent cac8dba138
commit 0508282e58
4 changed files with 97 additions and 4 deletions

View File

@@ -8,10 +8,12 @@ trait ModelTrait
{
/**
* 날짜 직렬화 포맷 오버라이드 (모델에 추가해서 사용)
*
* ISO 8601 (2025-12-22T15:00:00.000000Z) → Y-m-d (2025-12-22)
*/
protected function serializeDate(DateTimeInterface $date)
protected function serializeDate(DateTimeInterface $date): string
{
return $date->format('Y-m-d H:i:s');
return $date->format('Y-m-d');
}
/**