Common | Laravel Lang

Laravel Lang Help

Common

Installation

You can install the package using Composer:

composer require --dev laravel-lang/common

Usage

Now you can update existing localizations using the lang:update console command:

php artisan lang:update

We also recommend adding the call code to the post-update-cmd section of the scripts block in the composer.json file:

{ "scripts": { "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force", "@php artisan lang:update" ] } }

This allows localization files to be automatically updated after dependency updates, rather than manually running the php artisan lang:update console command.

Compatibility

Laravel

PHP

Package

Dependencies

Status

10*, 11

8.1, 8.2, 8.3

^6.0

Publisher 16, Lang 13, 14, 15, Actions 1, Attributes 2, HTTP Statuses 3, Locales 2, JSON Fallback 2

supported

* When used in Laravel 10, you need to manually specify the lang package version to install:

composer require --dev laravel-lang/lang:^14.0

10

8.1, 8.2, 8.3

^5.0

Publisher 15, Lang 13, Actions 1, Attributes 2, HTTP Statuses 3, Locales 1

not supported

10

8.1, 8.2

^4.0

Publisher 14, Lang 13, Attributes 2, HTTP Statuses 3, Locales 1

not supported

8, 9, 10

8.1, 8.2

^3.0

Publisher 14, Lang 12, Attributes 2, HTTP Statuses 3

not supported

7, 8, 9

8.0, 8.1

^2.0

Publisher 13, Lang 10, Attributes 1, HTTP Statuses 2

not supported

7, 8, 9

7.3, 7.4, 8.0, 8.1

^1.0

Publisher 12, Lang 10, Attributes 1, HTTP Statuses 2

not supported

Last modified: 16 July 2024