alisaleem27/nova-morph-to-create-field
A Laravel Nova field that adds inline creation to MorphTo relationships. Choose the morph type, fill in the related model's fields, and attach it without leaving the resource form, saving extra navigation and speeding up data entry.
MorphTo field) is small enough to implement in-house but tedious enough to be underestimated. This package supports the "buy cheap, plan to vendor" path: adopt under MIT, audit the ~1-class codebase, and keep a fork budgeted rather than treating it as a permanent vendor relationship.MorphTo. That limits exposure to an unmaintained field while still capturing most of the user benefit (users create against fresh parents far more often than they re-parent existing records).MorphTo on the child resource (the resource owns the relation), with a small number of morph types — realistically two to four — and stable aliases enforced via Relation::enforceMorphMap().src/ (maturity-level packages routinely ship namespaces that don't match the README), whether the create path routes through Nova resource authorization, and whether it preserves searchable, nullable, morphWith, and morphWithCount semantics.MorphTo values costs one query per morph type and the create affordance makes no sense there. Restrict it to form contexts.MorphTo with an inline create modal. The codebase is small enough to read end-to-end and fork. Before adopting, confirm Nova version compatibility, that inline creation defers to Nova policies for both the child and the parent resource, and how morph aliases map to target Nova resources. Pin the version, add a test asserting the persisted *_type/*_id pair, and plan to vendor the field class into app/Nova/Fields/ the moment you need a change.How can I help you explore Laravel packages today?