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
Eloquent Inheritance

Eloquent Inheritance Laravel Package

proai/eloquent-inheritance

Add single-table inheritance to Laravel Eloquent models. Define a base model and child classes sharing one table, with automatic class casting, scoped queries, and clean, lightweight behavior that is easy to drop into existing apps.

View on GitHub
Deep Wiki
Context7

proai/eloquent-inheritance adds single table inheritance support to Laravel Eloquent models. Define a base model and child classes that share one database table, with a type discriminator automatically mapping rows to the correct model class.

  • Child models reuse the parent table and schema
  • Automatic type resolution when querying
  • Shared attributes, casts, and relationships
  • Cleaner domain modeling without duplicate tables
  • Minimal setup with existing Eloquent conventions
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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package