3x1io/laravel-overridable-model
A Laravel package for making Eloquent models overridable, so applications and packages can swap in custom model classes through configuration without editing vendor code. Useful for extending third-party packages while keeping your own logic separate and upgrade-safe.
Architecture fit
Model::query(), relationships, and policy lookups all resolve to the overridden class.new statements, string class names in config, or serialized queue payloads.Integration feasibility
Technical risk
1.0.0 on a package that may have been 0.x implies API freeze, but nothing in the release substantiates that the maintainer intends to honor it.Key questions
composer.json or only implied?SerializesModels), and does a worker with stale config-cache resolve the old class?Stack fit
resolve() indirection). Do not run two override layers.Migration path
class_alias hacks) should be inventoried first; each is a candidate for migration, and each currently masks behavior we would need to reproduce.Compatibility
config:cache, OPcache preloading, and any existing class_alias or morph-map customization — these are the usual collision points for class-resolution packages.Sequencing
Maintenance
Support
Scaling
Failure modes
class_alias, or package-level model bindings.Ramp-up
How can I help you explore Laravel packages today?