sairahcaz/laravel-dynamic-model
Laravel Dynamic Model lets you create Eloquent models at runtime for any database table without generating model classes. Configure table names, use familiar Eloquent queries and CRUD, and work with dynamic schemas in Laravel apps.
laravel-dynamic-model lets you define Eloquent models, tables, and columns at runtime instead of at build time. This is the enabling primitive for user-defined fields, admin-configurable form builders, per-tenant schema customization, and "no-code" data capture — features that otherwise require a hand-rolled EAV layer or a metadata service.Adopt when:
Look elsewhere when:
For executives: This is a small open-source Laravel package that lets the application create database structures and models at runtime, which is what makes "custom fields" and customer-defined record types possible without a major custom build. The new v4.0.0 release is a compatibility release — it adds Laravel 13 support; there are no new user-facing features. Cost is low, but so is the margin for error: it shifts schema control to end users, so we should adopt it for one contained feature and keep it away from reporting and compliance-sensitive data.
For engineering: v4.0.0 is effectively a Laravel 13 support bump plus Dependabot housekeeping (ramsey/composer-install 3→4, dependabot/fetch-metadata 2.5→3). The major version signals a changed Laravel constraint rather than documented API breaks — verify constraints and run the suite before upgrading. Recommendation: pin to v3.0.4 while on Laravel ≤12; plan v4 as part of the Laravel 13 upgrade workstream. Note the package is single-maintainer and does runtime DDL — keep generated tables out of the analytics path, and wrap adoption in a feature flag so it can be withdrawn without a data migration.
How can I help you explore Laravel packages today?