To 16 from 15 | Laravel Lang

Laravel Lang Help

To 16 from 15

Updating Dependencies

You should update the following dependency in your application's composer.json file:

  • laravel-lang/publisher to ^16.0

Next, run the update dependency console command:

composer update

Change locale namespace

Replace the locales namespace:

LaravelLang\Locales\Enums\Locale

with

LaravelLang\LocaleList\Locale

For example:

// Before LaravelLang\Locales\Enums\Locale::Afrikaans; // af // After LaravelLang\LocaleList\Locale::Afrikaans; // af
Last modified: 18 December 2023