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

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.1.2...4.1.3

4.1.2

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

4.1.1

Avoids deprecation warning in PHP 8.1+ when preferences column is null (#20)

What's Changed

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.1.0...4.1.1

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.

What's Changed

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/4.0.0...4.1.0

4.0.0

Adds support for Laravel 12.x Drops support for Laravel 8.x and 9.x

What's Changed

New Contributors

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/3.1.1...4.0.0

3.1.1
3.1.0

3.1.0 - 2024-03-18

  • Added support for Laravel 11.x
  • Added support for Laravel 10.x

What's Changed

New Contributors

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/3.0.0...3.1.0

3.0.0

3.0.0 - 2022-03-30

  • Added support for Laravel 9.x
  • Drops support for Laravel 8.x

What's Changed

New Contributors

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/2.1.1...3.0.0

2.1.1

2.1.1 - 2022-03-30

  • Security Updates
  • Fix: avoid passing null to json_decode in PHP 8.1 Reex11

What's Changed

New Contributors

Full Changelog: https://github.com/RobTrehy/LaravelUserPreferences/compare/2.1.0...2.1.1

2.1.0

2.1.0 - 2021-08-02

2.0.1

Security Updates

2.0.0

Version 2 - Initial Release

v1.0.1
  • Fixed issue of incorrect column name.
  • FIxed error in readme.
v1.0.0
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