manmohanjit/nova-belongs-to-dependency
A Laravel Nova field package that makes BelongsTo relationships depend on another form field. When the parent select changes, the dependent BelongsTo options reload and filter automatically, enabling cascading dropdowns such as country, state, and city inside Nova resources.
BelongsTo field type, which Nova's native dependency support handles imperfectly for option filtering.Consider it when:
BelongsTo, Text, or Status field's value.Look elsewhere (or build in-house) when:
dependsOn() or maintained alternatives (e.g., Nova dependency containers) already cover the need.To executives: This is a small, MIT-licensed utility for our Laravel Nova admin panel that makes dependent dropdowns behave correctly — e.g., filtering cities by the selected state. It removes a common source of operator data-entry errors. Cost of adoption is effectively zero (open source, no vendor), and the risk is low because it lives only in internal admin tooling, not customer-facing systems. The caveat: the project is archived and has ~10 GitHub stars, so we cannot rely on upstream for fixes. Recommendation: treat it as a reference we fork and own internally, not a dependency we adopt — engineering effort is measured in hours, and it eliminates a future "why is our admin panel broken?" conversation.
To engineering: Adopt the pattern, not the package. The code is a compact Nova BelongsTo extension; forking (or reimplementing against Nova's current dependsOn API) gives us a maintained internal component, avoids version-drift surprises, and lets us extend it to status-driven and text-driven dependencies cleanly. Estimate: ~1–2 days to fork, harden, and add tests; ongoing cost near zero.
How can I help you explore Laravel packages today?