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 Overridable Model

Laravel Overridable Model Laravel Package

genealabs/laravel-overridable-model

Override Eloquent model methods and properties at runtime without touching vendor code. Define per-model overrides in your app to customize package models, swap behavior, or inject your own logic—keeping third-party code untouched and upgrades painless.

View on GitHub
Deep Wiki
Context7

genealabs/laravel-overridable-model lets you change how an Eloquent model behaves at runtime. Add the supplied trait to any model and override its attributes, accessors, or methods for a single instance—without editing the class, writing to the database, or leaking changes into other requests. This makes it easy to handle previews, test scenarios, and temporary customizations while keeping your models and data pristine.

  • Drop-in trait; no base class or schema changes
  • Per-instance attribute overrides that are never persisted
  • Override methods and computed values on the fly
  • Original database records stay untouched
  • Composes cleanly with existing Eloquent features and relationships
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.
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
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core