Actions
설치
노트
Actions 패키지의 호환성 표를 참조하세요.
설치하려면 다음 콘솔 명령을 실행하세요.
composer require --dev laravel-lang/actions:^1.13.2
사용법
이제 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 | Publisher | 패키지 | 상태 |
|---|---|---|---|---|
| 10, 11, 12, 13 | 8.1, 8.2, 8.3, 8.4, 8.5 | 15, 16 | ^1.0 | supported |