This repository has been archived by the owner on Feb 18, 2022. It is now read-only.
Releases: DarkGhostHunter/Laraconfig
Releases · DarkGhostHunter/Laraconfig
Fixes migrations
What fixes?
- Migrations statements where not executed correctly. #16
Fixes sample file
What fixes?
- The
settings/users.php
file contents was fixed. #13
Fixes OutputStyle instance and sample publishing
Fixed wrong provider class path
What's fixed?
- Automatic provider discovery fixed. (don't tell anyone!)
Fixes migration publishing
What fixes?
- Migrations where incorrectly published, or not if there were already published. #8
Enhanced `whereConfig`
What's new?
- Added
orWhereConfig()
. - Enhanced
whereConfig()
, as it now supports operators:User::whereConfig('joysticks', '>', 5)->first()
.
Minor fixes and typos
Merge pull request #6 from DarkGhostHunter/master Minor fixes and typos
Better filtering scopes, auto-delete
What's added?
- Added the
FilterBags
global scope to filter settings set by the model. Can be disabled. - Added a callback to remove child settings before the model is deleted from the database.
Minor optimizations and comments.
Nothing to read about.
Easier brainded syntax
What's changed?
- Added direct set/get for settings values using their names:
$value = $user->settings->color; $user->settings->color = 'red';
What's fixed?
- The
set()
method on the settings now gives a better error description when the setting name isn't found.