watheqalshowaiter/model-required-fields
A Laravel package for Eloquent models that helps define and retrieve required fields, making it easier to generate validation rules, forms, and API documentation from a single source of truth instead of duplicating field requirements.
watheqalshowaiter/model-fields lets a Laravel model expose additional fields without bespoke migrations for every new attribute. This directly informs the classic "custom fields" roadmap item (CRM-style records, configurable intake forms, per-tenant data extensions) — adopt the package instead of building an internal attributes subsystem.Consider adoption when:
Look elsewhere when:
For executives: This is a small, focused Laravel component that would let us deliver customer-configurable fields — a commonly requested capability — without building and maintaining that machinery ourselves. The trade is a modest dependency on an actively maintained open-source package in exchange for weeks of engineering time and ongoing maintenance we would otherwise absorb. Its latest release adds support for Laravel 13, so it will not hold back our platform upgrade. Risk is contained: the approach is straightforward to replace if our needs outgrow it, and the main caveat is that it is maintained by a single author, which we would mitigate with version pinning and a fallback plan.
For engineering: The package provides model-level additional fields via a trait and supporting storage, avoiding a migration per new attribute. Adoption means adding a dependency, its migrations, and tests around our actual field shapes. Please validate: supported Laravel/PHP matrix (3.2.2 targets Laravel 13), query performance for our expected filter/sort patterns, upgrade behavior across minor versions, and the exit path to native JSON columns. Pin the version, cover it with our own integration tests, and treat dynamic-field querying as a design constraint rather than an assumption of unlimited flexibility.
How can I help you explore Laravel packages today?