To 14.x from 13.x
- Make sure your application supports PHP 8.1 or higher;
- The minimum supported version of Laravel is 8.0.
- Bump
laravel-lang/publisher
version to ^14.0
in your composer.json
file; - Bump
laravel-lang/lang
version to ^11.0
in your composer.json
file; - Bump
laravel-lang/attributes
version to ^2.0
in your composer.json
file; - Bump
laravel-lang/http-statuses
version to ^3.0
in your composer.json
file; - Make sure all other connected language packs support the
new structure
open in new window. - The
alignment
key in the config file has been renamed to inline
. - Removed
excludes
and case
config keys. - Removed
LaravelLang\Publisher\Facades\Helpers\Config
facade. - Attributes removed from console command
lang:reset
. - Run the
composer update
console command.
Package Development
- Run the
composer require laravel-lang/status-generator --dev
console command. - Run the
vendor/bin/lang upgrade
console command. - Replace
LaravelLang\Publisher\Plugins\BasePlugin
with LaravelLang\Publisher\Plugins\Plugin
. - Compare the structure of your project with the templateopen in new window.
- Replace
vendor()
method with $vendor
attribute. - Added
$version
attribute. Now you can specify search versions. For example, ^5.0 || ^6.0 || ^7.0
.