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.
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.
How can I help you explore Laravel packages today?