본문으로 건너뛰기
버전: Legacy

Attributes

안정 알 수 없음

GitHub에서 보기

설치​

노트

설치하려면 다음 콘솔 명령을 실행하세요.

composer require --dev laravel-lang/attributes:^2.16.5

사용법​

이제 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 콘솔 명령을 수동으로 실행할 필요 없이 로캘 파일을 자동으로 갱신합니다.

호환성​

LaravelPHPPublisher패키지상태
10, 11, 12, 138.1, 8.2, 8.3, 8.4, 8.515, 16^2.5supported
8, 9, 10, 118.1, 8.214^2.0not supported
7, 8, 97.3, 7.4, 8.0, 8.112, 13^1.0not supported