All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Minimum requirements for Laravel 10. Laravel 9 users should use v3 of this package.
- Removed loading blade views which no longer exist since 3.0.0.
- Support for Laravel Nova 4
- Created a configuration file
- Locales now act as a resource (previously a tool)
- For menu customization refer to Nova Docs
-
Requirements
- php:
>= 8.0
- laravel/framework:
>= 9.0
- laravel/nova:
^4.0
- php:
-
Changed the service provider name from
ToolServiceProvider
toNovaLocaleManagerServiceProvider
- Might require you to run
composer dump-autoload
- Might require you to run
Due to our organization changing it's name, we are changing the namespace starting this release.
- composer.json:
"optimist-digital/nova-locale-manager"
=>"outl1ne/nova-locale-manager"
- imports:
OptimistDigital\NovaLocaleManager
=>Outl1ne\NovaLocaleManager
- Allow spatie/once 3.0
- Allow spatie/once 3.0
- Added nullable type declarations for return value
- Fixed locale helpers returning an associative array instead of a regular array when one of the locales isn't active
- Support Nova 3.0 in
composer.json
requirements
- Added
active
boolean to locales (NB! Requiresphp artisan migrate
) - Added
nova_get_default_locale_slug()
helper function
-
Migrations are now loaded automatically, you can delete the old migration(s) from your project:
2019_03_26_000000_create_locale_manager_tables.php
2019_03_26_000001_add_default_boolean.php
-
Made a new (inline) action "Toggle active" which enables/disables the locale
-
Made a new (inline) action "Make default" which makes the selected locale the default one
-
Reworked index view's UI and layout
-
Caching now uses
spatie/once
instead of static properties -
Renamed
locale
column toslug
(NB! Requiresphp artisan migrate
) -
Added
$activeOnly
option tonova_get_locales($activeOnly = false)
-
Added
$activeOnly
option tonova_get_locales_full($activeOnly = false)
-
Refactored a lot of code
Initial release.