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.
- Upgrade translations loader
- Fixed translations publishing
- Added Estonian (et) translations
- Replaced translations logic with
nova-translations-loader
- Updated packages
- Updated packages
- Fixed double call to update method in Mozilla Firefox (thanks to @vkazakevich)
- Fixed type error (thanks to @indykoning)
- Fixed the requirement to publish config (thanks to @indykoning)
- Added option to override Settings model (thanks to @indykoning)
- Updated packages
- Added default optional value to
nova_get_setting($key, $default = null)
helper (thanks to @Landish) - Added
type="submit"
to Settings submit button to allow enter press to save the form (thanks to @Landish)
- Fixed
Date
andDateTime
fields - Updated packages
- Fixed
->rules('required')
not displaying asterisk
- Support Nova 3.0 in
composer.json
requirements
- Fixed typo
- Added config file with
reload_page_on_save
option
- Read-only fields are no longer being saved
- Migration(s) are now loaded automatically. The following migration file can be deleted from your project:
2019_08_13_000000_create_nova_settings_table.php
- Updated packages
- Added translations support
- Added epartment/nova-dependency-container support
nova_get_setting()
andnova_get_settings()
now cache values to avoid duplicate queries
- Allow passing
callable
that returns an array of fields as first argument ofNovaSettings::addSettingsFields()
- Improve
nova-translatable
support - Fixed
Image
fieldDELETE
route not working when routes are cached - Updated packages
- Support
nova-translatable
rule validation
- Replaced
customFormatter
logic withcasts
that works identical to Laravel model's cast nova_get_setting_value($key)
is nownova_get_setting($key)
nova_get_settings($keys = null)
now accepts an array of keys that define which settings to returnsetSettingsFields($fields, $customFormatter)
is nowaddSettingsFields($fields, $casts = [])
- Added
addCasts($casts = [])
- Added validation support (thanks to @tom075)
- Added support for Laravel Translatable (thanks to @royduin)
- Fixed compatibility with Nova 2.7.0
- Added
Image
support
- Added
Panel
support
Initial release.
- Manage settings fields in code
- UI for editing settings
- Helpers for accessing settings