Because there are many breaking changes an upgrade is not that easy. There are many edge cases this guide does not cover. We accept PRs to improve this guide.
- The
larex.php
config was changed:- Optional. Please append new
source_language
key in this way:'source_language' => 'en',
- Optional. Please append new
Or you can delete your current config and publish it again (copy your changes before).
- The
larex.php
config was changed:- Optional. Please append new
SameParametersLinter
linter in this way:'linters' => [ // other linters here // Lukasss93\Larex\Linters\SameParametersLinter::class, ],
- Optional. Please append
ignore_empty_values
key in this way:'ignore_empty_values' => false,
- Optional. Please append new
Or you can delete your current config and publish it again (copy your changes before).
- The
larex.php
config was changed. Please change thepath
key in this way:
// <project-root>/config/larex.php
// before
'path' => 'resources/lang/localization.csv',
// after (Laravel 9)
'path' => lang_path('localization.csv'),
// after (Laravel 8)
'path' => resource_path('lang/localization.csv'),
Or you can delete your current config and publish it again (copy your changes before).
⚠️ Dropped PHP 7.4 support, please upgrade at least to PHP 8.0.⚠️ Dropped Laravel 7 support, please upgrade at least to Laravel 8.
-
The
larex.php
config was changed. Please delete your current config and publish it again (copy your changes before). -
If you created a custom Linter, please follow this steps:
- Change
public function description()
topublic static function description()
- Change
public function handle(Collection $row)
topublic function handle(CsvReader $reader)
- The CsvReader class exposes the following methods:
getHeader
to get the CSV header asCollection
getRows
to get the CSV rows asLazyCollection
- The CsvReader class exposes the following methods:
- Change
-
⚠️ Dropped PHP 7.3 support, please upgrade at least to PHP 7.4. -
⚠️ Dropped Laravel 6 support, please upgrade at least to Laravel 7.
Because the CSV default format was changed, please follow this steps:
⚠️ Please run thephp artisan larex:export
before upgrading to v2.0!- Delete the
localization.csv
file inside project-root/resources/lang folder - Upgrade the library to v2.0
- Run the
php artisan larex:import
command
- No breaking changes.
⚠️ Dropped support for PHP 7.2, please upgrade at least to PHP 7.3.