Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel User Preferences Laravel Package

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.

View on GitHub
Deep Wiki
Context7
4.1.3
  • Hotfix: Ensure when the database column is null, UserPreferences::all() applies the defaults and does not trigger a json_decode(null) warning
4.1.2
  • Hotfix: Ensure UserPreferences::all() method returns an array for backwards compatibility
4.1.1
  • Fix: Avoid deprecation warning in PHP 8.1+ when preferences column is null (#20)
4.1.0
  • Added methods for working with preferences for any user instance or ID:
    • getForUser()
    • setForUser()
    • resetForUser()
    • hasForUser()
  • Achieved 100% test coverage for UserPreferences class.
  • Updated internal caching to support per-user caching ($preferencesCache and $hasLoadedCache).
  • Minor docblock improvements.
4.0.0
  • Added support for Laravel 12
  • Removed support for Laravel 9
3.1.0
  • Added support for Laravel 11
  • Added support for Laravel 10
3.0.0
  • Added support for Laravel 9
2.1.1
  • Security Updates
  • Fix: avoid passing null to json_decode in PHP 8.1 Reex11
2.1.0
2.0.1
  • Security Updates
2.0.0
  • Added support for Laravel 8
  • Added code tests
1.0.1
  • Fixed issue of incorrect column name
  • Fixed error in readme
1.0.0
  • initial release
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport