robtrehy/laravel-user-preferences
Store and retrieve authenticated users’ preferences in Laravel, saved as JSON in a single DB column (default: users.preferences). Includes config publishing, migration to add the column, and optional caching via Laravel’s cache drivers with customizable keys.
Hotfix: Ensure when the database column is null, UserPreferences::all() applies the defaults and does not trigger a json_decode(null) warning
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.1.2...4.1.3
Hot Fix: Ensure ::all() method returns an array for backwards compatibility
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.1.1...4.1.2
Avoids deprecation warning in PHP 8.1+ when preferences column is null (#20)
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.1.0...4.1.1
getForUser()setForUser()resetForUser()hasForUser()UserPreferences class.$preferencesCache and $hasLoadedCache).Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.0.0...4.1.0
Adds support for Laravel 12.x Drops support for Laravel 8.x and 9.x
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/3.1.1...4.0.0
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/3.1.0...3.1.1
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/3.0.0...3.1.0
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/2.1.1...3.0.0
Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/2.1.0...2.1.1
Security Updates
Version 2 - Initial Release
How can I help you explore Laravel packages today?