Laravel 13.39.0 업데이트
릴리스: 2026년 10월 27일
평가: 2026년 10월 31일
Laravel 13.39.0은 새 기능(#[Table(key: false)], session:garbage-collect 명령, JobAttempted 이벤트의 duration 등)과 큐·캐시·페이지네이션·Octane 관련 버그 수정이 다수 묶인 마이너 릴리스입니다. 대부분 업데이트만으로 해결되는 수정이지만, 인코딩 불가능한 JSON 값에서 예외를 던지도록 바뀐 점과 RefreshDatabase의 롤백 방식 변경은 동작 차이를 만들 수 있으니 테스트 스위트를 한 번 돌려 확인하세요.
예상되는 하위 호환성 문제
- 인코딩 불가능한 JSON 값에서 예외 발생심각도 보통
릴리스 노트의 'Throw on unencodable JSON path values'(#62175)와 'Throw on unencodable JSON in object casts'(#62203)에 따라, JSON 경로 값과 object 캐스트에서 인코딩할 수 없는 값을 만나면 예외가 발생합니다. 노트에는 기존 동작의 상세 설명이 없어 정확한 이전 동작은 확인할 수 없습니다.
영향 범위: JSON 컬럼 경로 쿼리, object 캐스트를 사용하는 Eloquent 모델 (잘못된 UTF-8 등 인코딩 불가능한 데이터가 들어갈 수 있는 경우)
- RefreshDatabase가 테스트 후 모든 트랜잭션 레벨을 롤백심각도 낮음
'Roll back all transaction levels after each test in RefreshDatabase'(#62194)로 테스트 종료 시 중첩된 모든 트랜잭션 레벨이 롤백됩니다. 테스트 안에서 트랜잭션을 열어 둔 채 끝내던 코드의 동작이 달라질 수 있습니다.
영향 범위: RefreshDatabase를 사용하며 테스트 중 트랜잭션을 직접 다루는 테스트
- Filesystem::exists()/isFile()에서 phar:// 스트림 래퍼 차단심각도 낮음
'Block phar:// stream wrapper in Filesystem::exists() and isFile()'(#62164)로 해당 메서드에서 phar:// 경로가 차단됩니다. 같은 릴리스의 'Allow reading files from the running phar'(#62174)가 실행 중인 phar 내부 파일 읽기는 허용하므로, phar로 배포하는 앱만 영향을 받을 수 있습니다.
영향 범위: phar 패키징 앱, 사용자 입력 경로를 Filesystem::exists()/isFile()에 넘기는 코드
- schedule:interrupt가 폴링 비활성 시 실패심각도 낮음
'Fail schedule:interrupt when interruption polling is disabled'(#62183)로 인터럽트 폴링이 꺼져 있으면 명령이 실패 처리됩니다. 배포 스크립트에서 이 명령의 종료 코드를 확인한다면 영향이 있을 수 있습니다.
영향 범위: 배포 스크립트에서 schedule:interrupt를 호출하는 환경
패키지 관리자가 확인할 것
- laravel/octane위험도 낮음
'Fix the previous route leaking into 404 requests under Octane'(#62123) 수정이 포함되어 있습니다. Octane 운영 시 404 요청에서 이전 라우트 정보가 새던 문제가 해결되므로 업데이트 후 404 처리 로직을 확인해 보세요.
- laravel/horizon위험도 낮음
큐 관련 수정(삭제된 모델이 있는 잡이 queue:retry를 막지 않음, 데이터베이스 큐 reserve 시 동시성 오류로 잡을 실패 처리하지 않음, JobAttempted 이벤트에 duration 추가)이 포함되어 있습니다. JobAttempted 이벤트를 구독하는 코드가 있다면 새 속성을 활용할 수 있습니다.
- illuminate/queue위험도 낮음
queue:retry의 비스칼라 failed job id 처리, 삭제된 모델 잡 처리, 데이터베이스 큐 동시성 오류 처리, JobAttempted/sync 큐의 duration 추가가 이 영역의 변경입니다.
- illuminate/http위험도 낮음
'Fix Http::batch() treating retry() and throw() failures as successes'(#62120)로 Http::batch()에서 retry()/throw() 실패가 성공으로 처리되던 문제가 수정됩니다. 이 동작에 의존해 실패를 무시하던 코드가 있다면 이제 실패가 드러날 수 있습니다. 또한 Request::route() 반환 타입 수정(#62191)이 포함되어 있습니다.
- laravel/scout위험도 낮음
직접적인 Scout 변경은 릴리스 노트에 없습니다. 다만 그룹화된 union 쿼리의 페이지네이션 카운트 수정과 simple paginator의 page name 수정이 포함되어 있어 페이지네이션을 사용하는 검색 화면이 있다면 결과를 확인해 볼 수 있습니다.
대응 체크리스트
- 테스트 스위트 실행으로 JSON 캐스트·RefreshDatabase 동작 확인가까운 시일
composer update laravel/framework 후 php artisan test를 실행해 object 캐스트/JSON 경로 관련 예외나 RefreshDatabase 트랜잭션 관련 실패가 없는지 확인하세요.
- Http::batch() 사용 코드 점검가까운 시일
Http::batch()에서 retry()/throw()를 사용하는 곳이 있다면 실패가 이제 올바르게 실패로 처리되므로 후속 로직을 확인하세요.
- 배포 스크립트의 schedule:interrupt 확인선택
인터럽트 폴링을 비활성화한 환경에서 schedule:interrupt가 이제 실패하므로 배포 스크립트의 종료 코드 처리를 확인하세요.
- 신규 기능 검토선택
#[Table(key: false)], session:garbage-collect 명령, BelongsToMany의 forceCreate/forceCreateQuietly, 배열 규칙 빌더의 size 메서드, BusFake::withoutDispatchingAfterResponses, WithoutMigrationEvents 어트리뷰트가 추가되었습니다. 필요한 경우 도입을 검토하세요.
자동 생성상세 평가
요약
laravel/framework 13.39.0은 마이너 릴리스로, 신규 기능과 다수의 버그 수정이 포함되어 있습니다. 긴급한 보안 수정은 릴리스 노트에 명시되어 있지 않으며, 업데이트 후 테스트를 실행해 일부 동작 변화를 확인하면 됩니다.
주요 변경
- 신규 기능:
#[Table(key: false)]로 기본 키 비활성화(#62113),session:garbage-collect명령 추가 및 등록(#62104, #62150),JobAttempted이벤트와 sync 큐에 duration 추가(#62118, #62155),BelongsToMany에forceCreate/forceCreateQuietly(#62136), through 관계에restoreOrCreate()/createOrRestore()(#62204), 배열 규칙 빌더의 size 메서드(#62179),WithoutMigrationEvents어트리뷰트(#62201),BusFake::withoutDispatchingAfterResponses(#62130), 프로세스 fake의 종료 코드·예외 단축 표현(#62200). - 안정성 수정: phpredis 연결 끊김 시 클라이언트 재생성(#62111), config/route/event 캐시 파일 원자적 쓰기(#62117), PostgreSQL에서 데이터베이스 캐시 락이 트랜잭션을 중단시키는 문제(#62114), 트랜잭션 커밋 실패 시 매니저 롤백(#62206).
- 큐: 삭제된 모델 잡이
queue:retry를 멈추지 않도록 수정(#62124), 비스칼라 failed job id 처리(#62208), 데이터베이스 큐 reserve 시 동시성 오류 처리(#62145). - 쿼리/Eloquent: 그룹화된 union 쿼리 페이지네이션 카운트(#62131), simple paginator의 page name(#62128),
wherePivot클로저의 피벗 컬럼 한정(#62137), 서브쿼리 조인과latest()/oldest()(#62149), JSON:API 리소스 컬렉션 N+1(#62152),once()캐시 오류(#62121). - 기타:
Rule::anyOf()(#62171),withoutMiddleware()(#62166), Octane 404 라우트 누수(#62123),down --retryGMT 변환(#62190), markdown 알림 이미지 중복 삽입(#62163) 등의 수정이 있습니다.
하위 호환성
명시적인 대규모 breaking change는 릴리스 노트에 없습니다. 다만 인코딩 불가능한 JSON 값에서 예외를 던지는 변경(#62175, #62203), RefreshDatabase의 모든 트랜잭션 레벨 롤백(#62194), Filesystem::exists()/isFile()의 phar:// 차단(#62164), schedule:interrupt 실패 처리(#62183)는 기존 동작과 달라질 수 있어 확인이 필요합니다. 노트에는 각 변경의 이전 동작이 자세히 적혀 있지 않으므로 영향 범위는 실제 테스트로 확인하는 것이 안전합니다.
패키지 관리자가 확인할 것
- laravel/octane: 404 요청에서 이전 라우트가 새던 문제 수정 포함.
- laravel/horizon, illuminate/queue: 큐 재시도·reserve 동작 수정과 JobAttempted duration 추가.
- illuminate/http:
Http::batch()실패 처리 수정과Request::route()반환 타입 수정. - 위 항목 외에 릴리스 노트에서 직접 언급된 등록 패키지는 없습니다.
대응 체크리스트
-
composer update laravel/framework후 테스트 스위트 실행 - object 캐스트/JSON 경로 쿼리에서 새 예외 발생 여부 확인
-
Http::batch()의 retry()/throw() 사용 코드 점검 - 배포 스크립트의
schedule:interrupt종료 코드 처리 확인 - (선택) 신규 기능 도입 검토
GitHub 릴리스 노트를 근거로 언어 모델 (external-agent)이 작성했으며, 사람이 검수하지 않았습니다. 실제 적용 전에는 공식 릴리스 노트와 업그레이드 가이드를 함께 확인하세요.
GitHub 원문 릴리스 노트 보기
- [13.x] Rebuild the phpredis client when a broken pipe surfaces as a warning by @aleedhillon in https://github.com/laravel/framework/pull/62111
- [13.x] Resolve view namespace hints like view locations by @fgilio in https://github.com/laravel/framework/pull/62005
- [13.x] feat(database): allow disabling primary key via #[Table(key: false)] by @calebdw in https://github.com/laravel/framework/pull/62113
- [13.x] add duration to JobAttempted event by @jackbayliss in https://github.com/laravel/framework/pull/62118
- [13.x] Write config, route and event cache files atomically by @xurshudyan in https://github.com/laravel/framework/pull/62117
- [13.x] Fix database cache lock aborting the transaction on PostgreSQL by @xurshudyan in https://github.com/laravel/framework/pull/62114
- Fix
assertSeeText('0')silently passes for zero as string by @crynobone in https://github.com/laravel/framework/pull/62126 - [13.x] Fix incorrect docblocks by @xurshudyan in https://github.com/laravel/framework/pull/62125
- [13.x] Don't let a job with a deleted model stop queue:retry by @xurshudyan in https://github.com/laravel/framework/pull/62124
- [13.x] Fix the previous route leaking into 404 requests under Octane by @xurshudyan in https://github.com/laravel/framework/pull/62123
- [13.x] Fix cache:prune-stale-tags with the phpredis SCAN_PREFIX option by @xurshudyan in https://github.com/laravel/framework/pull/62122
- [13.x] Fix Http::batch() treating retry() and throw() failures as successes by @mkantautas in https://github.com/laravel/framework/pull/62120
- [13.x] Create
SessionGarbageCollectCommandby @browner12 in https://github.com/laravel/framework/pull/62104 - Bump vite from 8.0.16 to 8.3.5 in /src/Illuminate/Foundation/resources/exceptions/renderer by @dependabot[bot] in https://github.com/laravel/framework/pull/62132
- [13.x] Add withoutDispatchingAfterResponses to BusFake by @xurshudyan in https://github.com/laravel/framework/pull/62130
- [13.x] Fix pagination counts for grouped union queries by @mkantautas in https://github.com/laravel/framework/pull/62131
- [13.x] Fix simple paginator ignoring page name by @xurshudyan in https://github.com/laravel/framework/pull/62128
- [13.x] Qualify pivot columns in wherePivot closures by @xurshudyan in https://github.com/laravel/framework/pull/62137
- [13.x] Add
forceCreateandforceCreateQuietlytoBelongsToManyby @xurshudyan in https://github.com/laravel/framework/pull/62136 - Apply fixes from StyleCI by @taylorotwell in https://github.com/laravel/framework/pull/62140
- [13.x] remember token is nullable by @browner12 in https://github.com/laravel/framework/pull/62105
- [13.x] Fix dimensions of JXL images by @xurshudyan in https://github.com/laravel/framework/pull/62151
- [13.x] Fix latest() and oldest() with a join from a subquery by @xurshudyan in https://github.com/laravel/framework/pull/62149
- [13.x] Register the session:garbage-collect command by @xurshudyan in https://github.com/laravel/framework/pull/62150
- [13.x] Ensure
_error_baginput is a string inHandler::invalid()by @manavu in https://github.com/laravel/framework/pull/62147 - [13.x] Cloud exceptions follow-ups by @timacdonald in https://github.com/laravel/framework/pull/62142
- [13.x] Don't fail database queue jobs on concurrency errors while reserving by @xurshudyan in https://github.com/laravel/framework/pull/62145
- [13.x] Fix N+1 queries on JSON:API resource collection includes by @xurshudyan in https://github.com/laravel/framework/pull/62152
- [13.x] Fix once() returning a cached value for a different object by @xurshudyan in https://github.com/laravel/framework/pull/62121
- [13.x] Fix Rule::anyOf() passing associative arrays against plain rule lists by @xurshudyan in https://github.com/laravel/framework/pull/62171
- [13.x] Fix withoutMiddleware() not excluding middleware with parameters by @xurshudyan in https://github.com/laravel/framework/pull/62166
- [13.x] Block phar:// stream wrapper in Filesystem::exists() and isFile() by @AsahiSoftWareEngineer in https://github.com/laravel/framework/pull/62164
- [13.x] Embed images once in markdown notifications by @xurshudyan in https://github.com/laravel/framework/pull/62163
- [13.x] Fake
html()andplain()onMailFakeby @xurshudyan in https://github.com/laravel/framework/pull/62162 - [12.x] Test
SessionGuard::user()with recaller cookie that has an empty remember token by @crynobone with @Copilot in https://github.com/laravel/framework/pull/62156 - [13.x] Fix restoreOrCreate() and createOrRestore() on relations by @xurshudyan in https://github.com/laravel/framework/pull/62146
- [13.x] ensure sync queue passes duration too by @jackbayliss in https://github.com/laravel/framework/pull/62155
- Bump RedCrafter07/release-notes-action from 1.0.1 to 1.0.2 in the github-actions group by @dependabot[bot] in https://github.com/laravel/framework/pull/62196
- [13.x] Roll back all transaction levels after each test in
RefreshDatabaseby @xurshudyan in https://github.com/laravel/framework/pull/62194 - [13.x] Fix
Request::route()return type when no route is resolved by @yoannblot in https://github.com/laravel/framework/pull/62191 - [13.x] Convert the down --retry datetime to GMT by @xurshudyan in https://github.com/laravel/framework/pull/62190
- [13.x] Cloud exceptions improvements by @timacdonald in https://github.com/laravel/framework/pull/62189
- [13.x] Fix
illuminate/busfatal error withoutilluminate/queueby @xurshudyan in https://github.com/laravel/framework/pull/62182 - [13.x] Add size methods to the array rule builder by @riesjart in https://github.com/laravel/framework/pull/62179
- [13.x] Fix
distinct:ignore_casethrowing on values that are not valid UTF-8 by @sumaiazaman in https://github.com/laravel/framework/pull/62178 - [13.x] Use the CI MySQL port in
ApiAuthenticationWithEloquentTestby @xurshudyan in https://github.com/laravel/framework/pull/62176 - [13.x] Throw on unencodable JSON path values by @xurshudyan in https://github.com/laravel/framework/pull/62175
- [13.x] Allow reading files from the running phar by @xurshudyan in https://github.com/laravel/framework/pull/62174
- [13.x] Fail schedule:interrupt when interruption polling is disabled by @jackbayliss in https://github.com/laravel/framework/pull/62183
- Fix queue:retry with non-scalar failed job ids by @GromNaN in https://github.com/laravel/framework/pull/62208
- [13.x] Roll back transactions manager when commit fails by @pawell67 in https://github.com/laravel/framework/pull/62206
- [13.x] Fix creating models with #[Table(key: false)] by @xurshudyan in https://github.com/laravel/framework/pull/62205
- [13.x] Throw on unencodable JSON in object casts by @xurshudyan in https://github.com/laravel/framework/pull/62203
- [13.x] Add restoreOrCreate() and createOrRestore() to through relations by @xurshudyan in https://github.com/laravel/framework/pull/62204
- [13.x] Add
WithoutMigrationEventsattribute by @xurshudyan in https://github.com/laravel/framework/pull/62201 - [13.x] Support exit code and exception fake shorthands when starting processes by @xurshudyan in https://github.com/laravel/framework/pull/62200
- [13.x] Fix install:broadcasting skipping app.jsx and app.js by @xurshudyan in https://github.com/laravel/framework/pull/62202