PHPackages                             chinleung/nova-autofill - 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. chinleung/nova-autofill

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

chinleung/nova-autofill
=======================

Autofill values for Laravel Nova fields based on the parent model on creation.

v1.1.2(4y ago)613.3k4[1 issues](https://github.com/chinleung/nova-autofill/issues)MITPHPPHP &gt;=7.2.0

Since Oct 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chinleung/nova-autofill)[ Packagist](https://packagist.org/packages/chinleung/nova-autofill)[ Docs](https://github.com/chinleung/nova-autofill)[ RSS](/packages/chinleung-nova-autofill/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Nova Autofill
=============

[](#nova-autofill)

Auto prefill values for Laravel Nova fields based on the parent model.

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

[](#installation)

You can install the package via composer:

```
composer require chinleung/nova-autofill

```

Usage
-----

[](#usage)

If your model has a relationship, it can autofill some values when adding via a relationship in Laravel Nova. For instance, an order that belongs to a user, you can autofill the user's address when adding a new order via the user resource.

```
public function fields(Request $request)
{
    return [
        Text::make('Shipping Address Line 1')
            ->autofill(),
    ];
}
```

If no attribute is passed in the method, it will use the field's attribute name to fetch from the parent resource. However, you can specify the attribute to fill from:

```
public function fields(Request $request)
{
    return [
        Text::make('Shipping Address Line 1')
            ->autofill('address_line_1'),
    ];
}
```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Chin Leung](https://github.com/chinleung)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Every ~294 days

Total

4

Last Release

1513d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40590fe8b8c82dfac2530c6f0c0c39dd1dded4c3ad136e15ef2cf3bb20304dad?d=identicon)[ChinLeung](/maintainers/ChinLeung)

---

Top Contributors

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

---

Tags

autofilllaravel-novalaravel-packagelaravelnovaautofill

### Embed Badge

![Health badge](/badges/chinleung-nova-autofill/health.svg)

```
[![Health](https://phpackages.com/badges/chinleung-nova-autofill/health.svg)](https://phpackages.com/packages/chinleung-nova-autofill)
```

###  Alternatives

[spatie/nova-backup-tool

A Laravel Nova tool to backup your application.

361560.7k1](/packages/spatie-nova-backup-tool)[datomatic/nova-enum-field

A Laravel Nova PHP 8.1 enum field with filters

20134.2k](/packages/datomatic-nova-enum-field)[advoor/nova-editor-js

A Laravel Nova field bringing EditorJs magic to Nova.

92179.0k3](/packages/advoor-nova-editor-js)[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[genealabs/laravel-changelog

A Laravel Nova tool.

55250.7k](/packages/genealabs-laravel-changelog)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)

PHPackages © 2026

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