PHPackages                             treestoneit/belongs-to-field - 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. treestoneit/belongs-to-field

AbandonedArchivedLibrary

treestoneit/belongs-to-field
============================

A Laravel Nova Belongs To field that respects Eager Loading

v0.1(7y ago)550.4k↓32%MITPHPPHP &gt;=7.1.0

Since Nov 23Pushed 7y ago2 watchersCompare

[ Source](https://github.com/treeStoneIT/belongs-to-field)[ Packagist](https://packagist.org/packages/treestoneit/belongs-to-field)[ RSS](/packages/treestoneit-belongs-to-field/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Eager Loading Belongs To Field for Laravel Nova
===============================================

[](#eager-loading-belongs-to-field-for-laravel-nova)

A Laravel Nova Belongs To field that respects Eager Loading

In current version of Laravel Nova Eager Loading is not working with Default BelongsTo Field

For a temporary workaround that does not break updatability:

We made a new field that extends the existing BelongsTo Class

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

[](#installation)

Install the package into a Laravel app that uses [Nova](https://nova.laravel.com) with Composer:

```
composer require treestoneit/belongs-to-field
```

To use
------

[](#to-use)

Change all uses of `BelongsTo` to this `BelongsToField`.

If a proper fix is available in the future, just change it back to the nova one.

So resulting code resource should look like this:

```
...
use Treestoneit\BelongsToField\BelongsToField;
...
...
public function fields(Request $request)
    {
        return [
        ...
            BelongsToField::make('User')
        ...
        ];
    }
...
...
```

Credits
-------

[](#credits)

Thanks to [Michael Münch](https://github.com/laravel/nova-issues/issues/112#issuecomment-439160859) for this solution

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2733d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44207441?v=4)[Bomshteyn Consulting](/maintainers/treeStoneIT)[@treeStoneIT](https://github.com/treeStoneIT)

---

Top Contributors

[![bomshteyn](https://avatars.githubusercontent.com/u/4259699?v=4)](https://github.com/bomshteyn "bomshteyn (4 commits)")

---

Tags

laravelnovalaravelnova

### Embed Badge

![Health badge](/badges/treestoneit-belongs-to-field/health.svg)

```
[![Health](https://phpackages.com/badges/treestoneit-belongs-to-field/health.svg)](https://phpackages.com/packages/treestoneit-belongs-to-field)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[insenseanalytics/nova-server-monitor

A Laravel Nova tool for Spatie's Server Monitor library.

6546.9k](/packages/insenseanalytics-nova-server-monitor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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