Weave 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 Model Preferences

Laravel Model Preferences Laravel Package

hosmelq/laravel-model-preferences

Add per-model preferences to any Eloquent model with a simple key-value API. Store and retrieve settings, defaults, and typed values without extra tables or boilerplate, keeping per-user and per-model configuration clean, organized, and easy to manage in your Laravel app.

View on GitHub
Deep Wiki
Context7

hosmelq/laravel-model-preferences lets you attach arbitrary key-value preferences to any Eloquent model in your Laravel application. It provides a fluent, trait-based API backed by a single JSON column, keeping model-specific settings organized without extra tables.

Preferences support dot-notation access, sensible defaults, and scoped values, so simple user options and nested configuration share the same clean interface.

  • Attach preferences to any Eloquent model with a trait
  • Read, write, and forget values via a fluent API
  • Dot-notation support for nested preferences
  • Fallback defaults when a value is missing
  • Stored as JSON—no extra tables required
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.
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource