PHPackages                             wamesk/laravel-nova-price-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. wamesk/laravel-nova-price-field

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

wamesk/laravel-nova-price-field
===============================

A Laravel Nova price field with moneyphp/money library.

1.3.0(5mo ago)0216MITPHPPHP ^8.1

Since Feb 27Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/wamesk/laravel-nova-price-field)[ Packagist](https://packagist.org/packages/wamesk/laravel-nova-price-field)[ RSS](/packages/wamesk-laravel-nova-price-field/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

Laravel Nova Price Field
========================

[](#laravel-nova-price-field)

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

[](#installation)

```
composer install wamesk/laravel-nova-price-field
```

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

Shows single input for price, when viewing on detail or index page, shows price with currency suffix symbol.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make('price'),
```

#### Showing total price

[](#showing-total-price)

When you have quantity field (or something similar) you can show total price that dynamically calculates total price multiplying price with quantity.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make('price')
    ->asTotal(),
```

Usage should be only for viewing (detail and index page).

#### Multiple fields on form

[](#multiple-fields-on-form)

This adds price without tax and tax input. Includes automatic calculation. Saves only price with tax.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make()
    ->withAllFieldOnForm()
```

If you want to save other fields you can set database column names so it can save multiple values.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make()
    ->withAllFieldOnForm(withoutTaxColumn: 'price_without_tax', taxColumn: 'tax')
```

Now it will save values to corresponding columns.

#### Using price inputs without tax input

[](#using-price-inputs-without-tax-input)

You can hide tax input, but the calculation is not turned off. Adding `->setTax()` method is recommended.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make()
    ->withAllFieldOnForm()
    ->hideTaxFormField()
    ->setTax(23)
```

#### Using predefined tax options

[](#using-predefined-tax-options)

You can add `taxFieldAsSelect()` method to change number tax input to select with options.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make()
    ->withAllFieldOnForm()
    ->taxFieldAsSelect([
        10 => [
            'name' => 'Reduced tax (10%)',
        ],
        23 => [
            'name' => 'Standard tax (23%)',
        ],
    ])
```

You have option to save which option was selected by adding id to object and column name as 2nd parameter ot method.

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make()
    ->withAllFieldOnForm()
    ->taxFieldAsSelect([
        10 => [
            'id' => 'reduced',
            'name' => 'Reduced tax (10%)',
        ],
        23 => [
            'id' => 'standard',
            'name' => 'Standard tax (23%)',
        ],
    ], 'vat_rate_type')
```

You have option to change save value to not be ID of option by the value (key of select) by adding true to 3rd parameter ($saveAsValue).

```
use Wame\LaravelNovaPriceField\Fields\Price;
....
Price::make()
    ->withAllFieldOnForm()
    ->taxFieldAsSelect([
        10 => [
            'id' => 'reduced',
            'name' => 'Reduced tax (10%)',
        ],
        23 => [
            'id' => 'standard',
            'name' => 'Standard tax (23%)',
        ],
    ], 'vat_rate_type', true)
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance70

Regular maintenance activity

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~24 days

Recently: every ~33 days

Total

12

Last Release

168d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bf6ece61ae07942df38ce88eb4053d4176c6ab0bf803191953961023f25fc70?d=identicon)[WAME](/maintainers/WAME)

---

Top Contributors

[![adrianzofcin](https://avatars.githubusercontent.com/u/75702986?v=4)](https://github.com/adrianzofcin "adrianzofcin (20 commits)")[![stanislav-cervenak](https://avatars.githubusercontent.com/u/6931349?v=4)](https://github.com/stanislav-cervenak "stanislav-cervenak (6 commits)")[![wamesro](https://avatars.githubusercontent.com/u/5340873?v=4)](https://github.com/wamesro "wamesro (4 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/wamesk-laravel-nova-price-field/health.svg)

```
[![Health](https://phpackages.com/badges/wamesk-laravel-nova-price-field/health.svg)](https://phpackages.com/packages/wamesk-laravel-nova-price-field)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[vyuldashev/nova-money-field

A Laravel Nova field for Money.

73784.4k1](/packages/vyuldashev-nova-money-field)[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)[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)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1196.4k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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