PHPackages                             crayon/nova-additional-fields - 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. crayon/nova-additional-fields

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

crayon/nova-additional-fields
=============================

A Laravel Nova package that allows you to dynamically append inputs to your resources.

1.0.0(5y ago)21401MITVuePHP &gt;=7.1.0

Since Mar 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/crayon1337/NovaAdditionalFields)[ Packagist](https://packagist.org/packages/crayon/nova-additional-fields)[ RSS](/packages/crayon-nova-additional-fields/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Nova Additional Fields
==============================

[](#laravel-nova-additional-fields)

A laravel nova package that allows you to dynamically append inputs to your resources based on a database table.

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

[](#installation)

`composer require crayon/nova-additional-fields`

Documentation
-------------

[](#documentation)

Assuming you are building an eCommerce website, and you have different types of products. It would be uncomfortable if you want the admin of the website to enter custom values for each product.

So this package allows you to define form inputs in a Nova resource;

### Migration

[](#migration)

Product fields (Each field belongs to a category):

```
Schema::create('product_fields', function (Blueprint $table) {
    $table->id();
    $table->json('text');
    $table->string('type');
    $table->string('name');
    $table->text('options')->nullable();
    $table->unsignedBigInteger('category_id');
    $table->softDeletes();
    $table->timestamps();

    $table->foreign('category_id')->references('id')->on('categories')->onDelete('cascade');
});
```

### Resource Usage

[](#resource-usage)

The additional fields will be loaded from an endpoint (Fields that belong to the category we selected)

```
AdditionalFields::make('Additional Fields', 'fields')
    ->parent('category')
    ->endpoint('/api/category/{category}/fields')
    ->hideFromIndex(),
```

### Endpoint

[](#endpoint)

#### Route

[](#route)

```
Route::get('/category/{category}/fields', [\App\Http\Controllers\Api\NovaHelpers\NovaCategoryController::class, 'fields']);
```

#### Controller

[](#controller)

```
/**
 * Get available fields by Category ID
 *
 * @param $category
 * @return mixed
 */
public function fields($category)
{
    return Category::findOrFail($category)->fields->map(fn($field) => [
        'id' => $field->id,
        'text' => $field->text,
        'type' => $field->type,
        'name' => $field->name,
        'options' => $field->options
    ]);
}
```

The fields will be loaded into your resource based on the ones you added to your database. ProductFields resource find it [here](https://github.com/crayon1337/NovaAdditionalFields/blob/master/ProductFields.md)

Screenshots
-----------

[](#screenshots)

[![nova-additional-fields](https://camo.githubusercontent.com/6163838d4a868e7d1412e646727c42420baf1f59ff3fb5cd72076fee1b4f58f0/68747470733a2f2f6e6f76617061636b616765732e636f6d2f2f73746f726167652f73637265656e73686f74732f474f7865784e5054443274756b48476f6a61316671306f7878565768686e647270466f6f654535322e706e67 "Nova Additional Fields")](https://camo.githubusercontent.com/6163838d4a868e7d1412e646727c42420baf1f59ff3fb5cd72076fee1b4f58f0/68747470733a2f2f6e6f76617061636b616765732e636f6d2f2f73746f726167652f73637265656e73686f74732f474f7865784e5054443274756b48476f6a61316671306f7878565768686e647270466f6f654535322e706e67)[![nova-additional-fields](https://camo.githubusercontent.com/77fb2d6030bcee3817520414f631a8425682f93118e3f82b6890cf1eef99df79/68747470733a2f2f6e6f76617061636b616765732e636f6d2f2f73746f726167652f73637265656e73686f74732f55455066613575755367353471304b7a54727778364f656454335664706279384e473939615234782e706e67 "Nova Additional Fields")](https://camo.githubusercontent.com/77fb2d6030bcee3817520414f631a8425682f93118e3f82b6890cf1eef99df79/68747470733a2f2f6e6f76617061636b616765732e636f6d2f2f73746f726167652f73637265656e73686f74732f55455066613575755367353471304b7a54727778364f656454335664706279384e473939615234782e706e67)

Conclusion
----------

[](#conclusion)

Laravel Nova is a great piece of software that will boost your productivity when it comes to building admin panels. With a little of customization through custom packages &amp; fields. You are ready to rock 'N roll.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

1878d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/crayon-nova-additional-fields/health.svg)

```
[![Health](https://phpackages.com/badges/crayon-nova-additional-fields/health.svg)](https://phpackages.com/packages/crayon-nova-additional-fields)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[genealabs/laravel-overridable-model

Provide a uniform method of allowing models to be overridden in Laravel.

92398.0k2](/packages/genealabs-laravel-overridable-model)[inspheric/nova-defaultable

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

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12218.4k](/packages/yieldstudio-nova-google-autocomplete)

PHPackages © 2026

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