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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle