PHPackages                             formfeed-uk/nova-subfield-dependson - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. formfeed-uk/nova-subfield-dependson

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

formfeed-uk/nova-subfield-dependson
===================================

Functionality to allow fields which are contained within other fields to use Nova DependsOn

2.0.3(3y ago)088.7k—9.6%7[1 PRs](https://github.com/Formfeed-UK/nova-subfield-dependson/pulls)1MITPHPPHP ^8.0

Since Dec 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Formfeed-UK/nova-subfield-dependson)[ Packagist](https://packagist.org/packages/formfeed-uk/nova-subfield-dependson)[ RSS](/packages/formfeed-uk-nova-subfield-dependson/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (1)

Nova Subfield DependsOn
=======================

[](#nova-subfield-dependson)

This [Laravel Nova](https://nova.laravel.com/) package includes an interface and middleware to allow fields that contain subfields (such as Dependable Panel, or Flexible Content) to allow those subfields to use the `dependsOn` functionality within Laravel Nova 4.

As long as all fields that contain subfields implement the interface methods any subfield could be nested within any field to any depth.

Requirements
------------

[](#requirements)

- `php: >=8.0`
- `laravel/nova: ^4.0`

Installation
------------

[](#installation)

1. Install the package in to a Laravel app that uses [Nova](https://nova.laravel.com) via composer:

```
composer require formfeed-uk/nova-subfield-dependson
```

Usage
-----

[](#usage)

Simply implement the included interface onto any Field you wish to allow subfields to use the dependsOn functionality

#### hasSubFields

[](#hassubfields)

```
    public function hasSubfields(): bool;
```

This method should return a boolean value to indicate whether the current instance of your field has subfields that require the dependsOn functionality.

#### getSubfields

[](#getsubfields)

```
    public function getSubfields(): FieldCollection;
```

This method should return a `FieldCollection` of the subfields that require the dependsOn functionality

#### afterDependsOnSync

[](#afterdependsonsync)

```
    public function afterDependsOnSync() : self;
```

This method is run after any dependsOn sync where additional logic may be required. This may simply `return $this;` where no additional logic is required.

Known Issues
------------

[](#known-issues)

Due to how Nova's DependantComponentKey works If a field uses the same Class, Component, and Attribute as another subfield within the same request this could cause a collision, where the wrong field is found. An upcoming release will include a macro for `Laravel\Nova\Fields\Field` to allow you to set your own DependantComponentKey method.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Total

6

Last Release

1167d ago

Major Versions

1.0.1 → 2.0.02022-12-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/6116a0834c68177c53e80259399de5ad6cbfc8e49e2c945343f1cacf8accd14a?d=identicon)[ianrobertsFF](/maintainers/ianrobertsFF)

---

Top Contributors

[![ianrobertsFF](https://avatars.githubusercontent.com/u/91917328?v=4)](https://github.com/ianrobertsFF "ianrobertsFF (10 commits)")[![alisaleem27](https://avatars.githubusercontent.com/u/28596110?v=4)](https://github.com/alisaleem27 "alisaleem27 (1 commits)")

### Embed Badge

![Health badge](/badges/formfeed-uk-nova-subfield-dependson/health.svg)

```
[![Health](https://phpackages.com/badges/formfeed-uk-nova-subfield-dependson/health.svg)](https://phpackages.com/packages/formfeed-uk-nova-subfield-dependson)
```

###  Alternatives

[wireui/wireui

TallStack components

1.8k1.3M16](/packages/wireui-wireui)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)[ramonrietdijk/livewire-tables

Dynamic tables for models with Laravel Livewire

21147.4k](/packages/ramonrietdijk-livewire-tables)[stepanenko3/nova-cards

A Laravel Nova info cards.

33143.0k](/packages/stepanenko3-nova-cards)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
