PHPackages                             marshmallow/prefiller-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. marshmallow/prefiller-field

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

marshmallow/prefiller-field
===========================

A Laravel Nova field to prefill fields based on another field. Super Awesome!

2.3.1(2y ago)23.8k↓29.2%1[1 PRs](https://github.com/marshmallow-packages/prefiller-field/pulls)MITPHPPHP ^7.1|^8.0CI passing

Since Sep 24Pushed 3mo ago1 watchersCompare

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

READMEChangelog (6)DependenciesVersions (14)Used By (0)

Nova prefiller field
====================

[](#nova-prefiller-field)

A Laravel Nova field to prefill fields based on another field. Super Awesome!

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

[](#installation)

```
composer require marshmallow/prefiller-field
```

Usage
-----

[](#usage)

```
public function fields(Request $request)
{
    return [
		BelongsTo::make('Product')->nullable()->searchable(),

		PrefillerText::make('Test', 'field_2')
                    ->sourceField('product')
                    ->sourceModel(\Marshmallow\Product\Models\Product::class)
                    ->prefillWith('name'), // This can be a field or a method on your target resource

        PrefillerCurrency::make('Test 3', 'field_3')
                    ->sourceField('product')
                    ->sourceModel(\Marshmallow\Product\Models\Product::class)
                    ->prefillWith('price')
                    ->currency('EUR')
                    ->default(0)
                    ->nullable(),
	]
}
```

### Extra methods

[](#extra-methods)

I you want the prefiller to check for new values, even if the target field is already filled with content, you can call the method `allowUpdatingFilledFields()`.

### Supported

[](#supported)

Currently we have only implemented the `Text` and `Currency` field because we needed it in a project for a customer. We will add more in the comming months. Feel free to send a pull request if you need another field for your project.

### Security

[](#security)

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

License
-------

[](#license)

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

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance53

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~95 days

Recently: every ~2 days

Total

12

Last Release

1018d ago

Major Versions

v1.0.4 → 2.0.02023-07-05

PHP version history (2 changes)v1.0.0PHP &gt;=7.1.0

v1.0.3PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (26 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")

---

Tags

laravelnovamarshmallownova-fieldprefill

### Embed Badge

![Health badge](/badges/marshmallow-prefiller-field/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-prefiller-field/health.svg)](https://phpackages.com/packages/marshmallow-prefiller-field)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

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

51174.8k1](/packages/inspheric-nova-defaultable)[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)[ferdiunal/nova-editable-field

A Laravel Nova package to make fields editable.

104.6k](/packages/ferdiunal-nova-editable-field)

PHPackages © 2026

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