All notable changes to laravel-settings
will be documented in this file
- Make
spatie/data-transfer-object
dependency optional. (#160)
- Add current date to the settings migration file (#178)
- Add command to make new settings (#181)
- create settings migration with current date (#179)
- Add support for caching on repository level
- Remove deprecated package
- Add laravel data cast
- Add support for PHP 8.2
- Remove PHP 7.4 support
- Remove dto cast from default config
- Add deleteIfExists() method to migrator (#154)
- cache encrypted settings
Please, be sure to clear your cache since settings classes with encrypted properties will crash due to the cached versions missing a proper encrypted version of the property. Clearing and caching again after installing this version resolves this problem and is something you probably should always do when deploying to production!
- add rollback to migration
- use Facade imports instead of aliases (#132)
- Switch to using scoped instances instead of singletons (#129)
- Add TTL config for settings cache by @AlexVanderbist in spatie#122
- @AlexVanderbist made their first contribution in spatie#122
Full Changelog: https://github.com/spatie/laravel-settings/compare/2.3.3...2.4.0
- fix debug info method
- convert PHPUnit to Pest (#118)
- Allow migrations without a value (#113)
- Add support for Laravel 9
- Fix cache implementation with casts
- Remove Psalm
- Add PHPStan
- add support for multiple migration paths (#92)
- add possibility to check if setting is locked or unlocked (#89)
- ignore abstract classes when discovering settings (#84)
- add support for
null
in DateTime casts
- fix
empty
call not working when properties weren't loaded
- fix fake settings not working with
Arrayable
- add support for refreshing settings
- add support for defining the database connection table
- fix some casting problems
- update php-cs-fixer
- added fallback for settings.auto_discover_settings (#63)
- add support for spatie/data-transfer-object v3 (#62)
- add support for spatie/temporary-directory v2
- skip classes with errors when discovering settings
- add better support for nullable types in docblocks
- add casts to migrations (#53)
- add original properties to
SavingSettings
event (#57)
- add support for lumen
- settings classes:
-
- properties won't be loaded when constructed but when requested
-
- receive a
SettingsMapper
when constructed
- receive a
-
- faking settings will now only request non-given properties from the repository
- rewritten
SettingsMapper
from scratch - removed
SettingsPropertyData
andettingsPropertyDataCollection
- changed signatures of
SavingSettings
andLoadingSettings
events - added support for caching settings
- renamed
cache_path
in settings.php todiscovered_settings_cache_path
- fix for properties without defined type
- fix correct 'Event' facade (#30)
- add support for restoring settings after a Laravel schema:dump
- bump the
doctrine/dbal
dependency
- add support for getting the locked settings
- add PHP 8 support
- fix package namespace within migrations (#9)
- fix config file tag (#4)
- fix database migration path exists (#7)
- initial release