Publisher
설치
노트
Publisher 패키지의 호환성 표를 참조하세요.
설치하려면 다음 콘솔 명령을 실행하세요.
composer require --dev laravel-lang/publisher:^16.9.0
사용법
이제 lang:update 콘솔 명령으로 기존 로캘을 업데이트할 수 있습니다.
php artisan lang:update
composer.json의 scripts 블록에서 post-update-cmd 항목에 호출을 추가하는 것도 좋습니다.
{
"scripts": {
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan lang:update"
]
}
}
이렇게 하면 의존성을 업데이트한 뒤 php artisan lang:update 콘솔 명령을 수동으로 실행할 필요 없이 로캘 파일을 자동으로 갱신합니다.
호환성
| Laravel | PHP | 패키지 | 상태 |
|---|---|---|---|
| 10, 11, 12, 13 | 8.1, 8.2, 8.3, 8.4, 8.5 | ^16.0 | supported |
| 10 | 8.1, 8.2, 8.3 | ^15.0 | not supported |
| 8, 9, 10 | 8.1, 8.2 | ^14.0 | not supported |
| 7, 8, 9 | 8.0, 8.1 | ^13.0 | not supported |
| 7, 8, 9 | 7.3, 7.4, 8.0, 8.1 | ^12.0 | not supported |