Laravel 13.38.0 업데이트
릴리스: 2026년 10월 20일
평가: 2026년 10월 26일
Laravel 13.38.0은 버그 수정이 대부분인 마이너 릴리스로, 새 기능으로 PreventStaleDatabaseReads 미들웨어와 Connection::usingWritePdo()가 추가되었습니다. 릴리스 노트상 문서화된 공개 API를 깨는 변경은 없으므로 긴급 대응은 필요 없고, 모델에서 #[Connection] 속성과 상속된 $connection 속성을 함께 쓰거나 mode()·whereBetween에 컬렉션 경계값을 쓰는 코드가 있다면 업데이트 후 동작을 확인하세요.
예상되는 하위 호환성 문제
- 자식 모델의 #[Connection] 속성이 상속된 $connection 속성보다 우선심각도 낮음
릴리스 노트 PR #62065 "Respect child #[Connection] attribute over inherited $connection property"에 따라, 부모 클래스의 $connection 속성을 상속받은 자식 모델에 #[Connection] 속성이 있으면 이제 자식의 속성이 적용됩니다. 노트에는 변경 전 동작의 상세가 없어 영향 범위는 이 제목에서 읽히는 범위로 한정합니다.
영향 범위: 부모 모델의 $connection 프로퍼티를 상속하면서 자식에 #[Connection] 속성을 지정한 Eloquent 모델
대응 체크리스트
- 모델 연결(connection) 지정 방식 점검가까운 시일
부모 모델의 $connection 프로퍼티와 자식 모델의 #[Connection] 속성을 함께 쓰는 모델이 있는지 grep 으로 확인하고, 업데이트 후 해당 모델이 의도한 DB 연결을 쓰는지 테스트로 확인하세요.
- 컬렉션 mode(), whereBetween 사용처 회귀 테스트선택
mode()가 float 값을 잘라내던 문제(#62063)와 컬렉션 경계값을 쓰는 whereBetween/whereNotBetween 문제(#62062)가 수정되었습니다. 기존 코드가 잘못된 결과에 맞춰져 있었다면 테스트 기대값이 바뀔 수 있으니 composer update 후 테스트를 실행하세요.
- PreventStaleDatabaseReads 미들웨어 검토선택
읽기/쓰기 DB를 분리해 쓰는 앱이라면 새로 추가된 미들웨어(#62078)와 Connection::usingWritePdo()(#62099)가 쓸모 있는지 검토하세요. 릴리스 노트에는 사용법 설명이 없으므로 도입 전 프레임워크 소스와 문서를 확인해야 합니다.
자동 생성상세 평가
요약
Laravel 13.38.0(13.x 브랜치, 마이너)은 Eloquent 관계, 컬렉션, 스케줄러, 알림 관련 버그 수정이 중심입니다. 신규 기능은 PreventStaleDatabaseReads 미들웨어와 Connection::usingWritePdo()입니다. 문서화된 공개 API를 깨는 변경은 릴리스 노트에서 확인되지 않아 즉시 대응할 항목은 없습니다.
주요 변경
- 신규: PreventStaleDatabaseReads 미들웨어(#62078), Connection::usingWritePdo()(#62099), Unique
where규칙에서 float 값 허용(#62059), 큐 리스너·메일러블·알림에서 CountCrashesAsExceptions 지원(#62048), 유니크 브로드캐스트 이벤트가 건너뛰어질 때 UniqueJobSkipped 디스패치(#62077). - 수정(Eloquent): ofMany() 별칭이 클로저 안에서 동작하지 않던 문제(#62051), 자기 참조 one-of-many 관계의 존재/집계 쿼리(#62043), 관계의 clone()(#62081), 자식 #[Connection] 속성 우선 적용(#62065), lazy()/lazyById()에서 이전 청크 해제(#62086).
- 수정(그 외): 컬렉션 mode()의 float 값 잘림(#62063), whereBetween/whereNotBetween의 컬렉션 경계값(#62062), 날짜 비교 규칙이 날짜가 아닌 값에서 TypeError 를 내던 문제(#62103), 채널별 전송 전 NotificationFailed 플래그 초기화(#62074), 스케줄된 작업 디스패치 실패 시 유니크 락 해제(#62083), 헬스 라우트의 머신 간 라우트 캐시 호환(#62049), Cloud 로깅 포매터 네임스페이스 복원(#62068), SQLite에서 따옴표가 필요한 테이블명을 가리키는 외래 키가 있는 테이블 변경(#62084).
- 내부/비기능: 죽은 코드·테스트 파일 제거, 독블록 수정, 미사용 import 제거, Memcached 통합 테스트 실행, PHPStan 오류 수정(#62057, #62101, #62097, #62100, #62087, #62069, #62096).
하위 호환성
릴리스 노트에서 명시적으로 호환성을 깨는 변경은 확인되지 않습니다. 다만 동작이 달라질 수 있는 수정이 있습니다. 자식 모델의 #[Connection] 속성이 상속된 $connection 프로퍼티보다 우선하게 되었고(#62065), mode()·whereBetween·관계 clone() 등은 이전의 잘못된 결과가 바로잡힙니다. 이전 동작에 의존하던 코드가 있다면 결과가 달라질 수 있습니다. 또한 "remove dead until higher order collection proxy"(#62057)는 사용되지 않는 프록시 제거로 기술되어 있으며, 해당 프록시를 직접 호출하던 코드가 있다면 확인이 필요합니다.
패키지 관리자가 확인할 것
릴리스 노트에 이 사이트에 등록된 특정 패키지를 직접 지목하는 내용은 없어 패키지별 영향은 없음으로 판단했습니다. 일반적으로 Eloquent 모델·관계를 확장하거나 자체 연결 속성을 상속하는 패키지, 컬렉션 mode() 또는 whereBetween 에 의존하는 패키지는 13.38.0 에서 자체 테스트 스위트를 한 번 돌려 보는 것을 권합니다.
대응 체크리스트
- 부모의 $connection 프로퍼티와 자식의 #[Connection] 속성을 함께 쓰는 모델 점검
- composer update 후 테스트 스위트 실행 (mode(), whereBetween, 관계 clone() 사용처 중심)
- (선택) 읽기/쓰기 DB 분리 환경에서 PreventStaleDatabaseReads 미들웨어 도입 검토
- (선택) Unique
where규칙에서 float 값을 쓰는 검증 규칙이 기대대로 동작하는지 확인
GitHub 릴리스 노트를 근거로 언어 모델 (external-agent)이 작성했으며, 사람이 검수하지 않았습니다. 실제 적용 전에는 공식 릴리스 노트와 업그레이드 가이드를 함께 확인하세요.
GitHub 원문 릴리스 노트 보기
- [13.x] Allow float values in Unique
whererule by @sertxudev in https://github.com/laravel/framework/pull/62059 - [13.x] Remove dead
untilhigher order collection proxy by @xurshudyan in https://github.com/laravel/framework/pull/62057 - [13.x] Fix ofMany() alias inside closures by @xurshudyan in https://github.com/laravel/framework/pull/62051
- [13.x] Fix existence and aggregate queries on self-referencing one-of-many relations by @xurshudyan in https://github.com/laravel/framework/pull/62043
- [13.x] Support CountCrashesAsExceptions on queued listeners, mailables and notifications by @Taldres in https://github.com/laravel/framework/pull/62048
- [13.x] Make health route compatible with route caching across machines by @percymamedy in https://github.com/laravel/framework/pull/62049
- [13.x] Restore the namespaced Cloud logging formatter by @xurshudyan in https://github.com/laravel/framework/pull/62068
- [13.x] Run the Memcached cache lock and tagged cache integration tests by @xurshudyan in https://github.com/laravel/framework/pull/62069
- [13.x] Fix
mode()returning truncated values for floats by @xurshudyan in https://github.com/laravel/framework/pull/62063 - [13.x] Reset
NotificationFailedflag before each channel send by @xurshudyan in https://github.com/laravel/framework/pull/62074 - [13.x] Respect child
#[Connection]attribute over inherited$connectionproperty by @xurshudyan in https://github.com/laravel/framework/pull/62065 - [13.x] Fix
whereBetweenandwhereNotBetweenwith collection bounds by @xurshudyan in https://github.com/laravel/framework/pull/62062 - [13.x] Fix altering SQLite tables with a foreign key to a table name that needs quoting by @sumaiazaman in https://github.com/laravel/framework/pull/62084
- [13.x] Fix clone() on relations by @xurshudyan in https://github.com/laravel/framework/pull/62081
- [13.x] Release the unique lock when dispatching a scheduled job fails by @sumaiazaman in https://github.com/laravel/framework/pull/62083
- [13.x] Fix incorrect docblocks by @xurshudyan in https://github.com/laravel/framework/pull/62097
- [13.x] Fix PHPStan error when passing a closure to PendingBatch::allowFailures() by @xurshudyan in https://github.com/laravel/framework/pull/62096
- [13.x] Remove unused imports by @xurshudyan in https://github.com/laravel/framework/pull/62087
- [13.x] Free the previous chunk in
lazy()andlazyById()by @xurshudyan in https://github.com/laravel/framework/pull/62086 - [13.x] Add PreventStaleDatabaseReads middleware by @jackbayliss in https://github.com/laravel/framework/pull/62078
- [13.x] Dispatch UniqueJobSkipped when a unique broadcast event is skipped by @jackbayliss in https://github.com/laravel/framework/pull/62077
- [13.x] Remove dead test files by @xurshudyan in https://github.com/laravel/framework/pull/62101
- [13.x] Fix TypeError in date comparison rules on non-date values by @GrahamCampbell in https://github.com/laravel/framework/pull/62103
- [13.x] Fix incorrect docblocks by @xurshudyan in https://github.com/laravel/framework/pull/62100
- [13.x] add usingWritePdo to Connection by @jackbayliss in https://github.com/laravel/framework/pull/62099