PHPackages                             thienkimlove/nova-test-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. thienkimlove/nova-test-field

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

thienkimlove/nova-test-field
============================

A Laravel Nova field.

016Vue

Since May 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thienkimlove/nova-test-field)[ Packagist](https://packagist.org/packages/thienkimlove/nova-test-field)[ RSS](/packages/thienkimlove-nova-test-field/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Money Field for Laravel Nova
============================

[](#money-field-for-laravel-nova)

A custom money field for a Laravel\\Nova application I am working on. The default Currency field provided by Nova didn't quite cut the mustard for me so ended up creating this.

- Works with minor units (both updating and displaying)
- Displays the amount with the correct currency sign and in the proper locale format
- Adds the currency sign to the create/update field

Installing
----------

[](#installing)

You can install the package into your Nova application via composer:

```
composer require everestmx/nova-money-field

```

Using
-----

[](#using)

In your nova resource file, add the following into your Fields method:

```
use Everestmx\NovaMoneyField\Money;

public function fields (Request $request)
{
	return [
		Money::make('Price'),
	];
}

```

Options
-------

[](#options)

You can optionally add the column name to be used if different from the display name as per any Nova field:

```
Money::make('Price', 'price_column');

```

The default currency is **GBP** but can be changed per field using currency()

```
Money::make('Price')->currency('USD');

```

The default locale is the one set as per the Laravel config('app.locale') file but can be changed per field using locale()

```
Money::make('Price')->locale('en_US');

```

By default we assume you are storing values not as minor units, but you can change this with minor(true)

```
Money::make('Price')->minor(true);

```

This will automatically format all entered values into minor units so remember to remove any laravel set/get attribute methods on your models!

Advanced
--------

[](#advanced)

The defaults loaded for this package (Currency, Locale, etc) are loaded within the 'loadDefaults' method within src\\Money.php

### About Nova Packages and everything.

[](#about-nova-packages-and-everything)

- To make `composer update` with nova package work immediately

we should get the latest commit first 6 characters.

and using `composer require thienkimlove/nova-test-field:dev-master#78ff77`

- To make Laravel Nova work directly after edit nova packages

```
cd ./vendor/laravel/nova
mv webpack.mix.js.dist webpack.mix.js
npm install
npm run dev
rm -rf node_modules
cd -
php artisan nova:publish

```

and go back `./vendor/laravel/nova` and run `npm run watch`

Go to packages and run

```
npm install
npm run dev or npm run watch

```

- After that we can install vuedevtool from chrome.
- Add packages to packagist `https://packagist.org/packages/submit`
- Link about example which not implement but learn alot

`https://github.com/avarixe/myfifa-vue/blob/9ccb0e00efbad03c163cef5c0aa8b446e370660e/helpers/VMoneyField.vue`

- Not implement `https://vuejs-tips.github.io/vue-the-mask/`
- Nova doc about npm

```
Your Nova field contains a webpack.mix.js file, which is generated when Nova creates your field. You may build your field using the NPM dev and prod commands:

// Compile your assets for local development...
npm run dev

// Compile and minify your assets...
npm run prod
In addition, you may run the NPM watch command to auto-compile your assets when they are changed:

npm run watch

```

- input mask nova but simple

```
https://github.com/wemersonrv/input-mask/blob/master/resources/js/components/FormField.vue

```

- All about input mask `https://github.com/RobinHerbots/Inputmask`
- Using from this

```
https://github.com/gnatishen/ticketService/blob/fa92060c7ab38b8a278411ca3b7dea875c1d839e/resources/js/components/ClientFormComponent.vue

```

- Not try

```
import Inputmask from "inputmask";

export default {
  mounted() {
    let parentSelector = this.$refs.ipInput
    let selector = parentSelector.$el.children[1];
    Inputmask({"mask": "999.999.999.999"}).mask(selector);
  },
}

```

- another

```
https://github.com/wemersonrv/input-mask/blob/master/resources/js/components/FormField.vue
https://novapackages.com/packages/everestmx/nova-money-field

```

- **Important**

Please note that after edit nova packages github code,

we must run

```
npm run dev
npm run prod

```

to rebuild `field.js`

after that we commit to github and using commit-hash to update composer

```
composer require thienkimlove/nova-test-field:dev-master#

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

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

---

Top Contributors

[![quandm-teko](https://avatars.githubusercontent.com/u/50649199?v=4)](https://github.com/quandm-teko "quandm-teko (8 commits)")[![thienkimlove](https://avatars.githubusercontent.com/u/9207748?v=4)](https://github.com/thienkimlove "thienkimlove (4 commits)")[![everestmx](https://avatars.githubusercontent.com/u/5403326?v=4)](https://github.com/everestmx "everestmx (3 commits)")[![zareismail](https://avatars.githubusercontent.com/u/23401061?v=4)](https://github.com/zareismail "zareismail (1 commits)")

### Embed Badge

![Health badge](/badges/thienkimlove-nova-test-field/health.svg)

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

###  Alternatives

[dm/ajaxcom

Controls Ajax from PHP

1816.4k](/packages/dm-ajaxcom)[slack/hack-json-schema

Hack JSON Schema generator

302.4k](/packages/slack-hack-json-schema)[proai/lumen-annotations

Route and event binding annotations for Laravel Lumen

1012.4k](/packages/proai-lumen-annotations)

PHPackages © 2026

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