PHPackages                             freshwork/rut-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. freshwork/rut-field

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

freshwork/rut-field
===================

A Laravel Nova field.

1.1.2(7y ago)5175MITVuePHP &gt;=7.1.0

Since Oct 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/freshworkstudio/nova-rut-field)[ Packagist](https://packagist.org/packages/freshwork/rut-field)[ RSS](/packages/freshwork-rut-field/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

RUT Field for Laravel Nova
==========================

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

This package adds a Chilean RUT Field to Laravel Nova. It uses [this composer package](https://github.com/freshworkstudio/ChileanBundle) behind the scenes.

- Formats the input text on keyup or blur
- Normalizes the format before storing the value on database (without dashes nor dots). You can disable this and store the original text sended by the user.
- Can validate the value.

### Getting started `RutField`

[](#getting-started-rutfield)

```
use Freshwork\RutField\RutField;
// ...

public function fields(Request $request)
{
    return [
        RutField::make('rut')->rules('required|cl_rut');
    ]
}
```

#### When to format

[](#when-to-format)

By defaultm, on forms, it format the value on `keyup`. You can change this to `blur`.

```
RutField::make('rut')->formatOnBlur();
```

#### The format

[](#the-format)

There are three possible formats:

```
COMPELTE     12.345.678-9
WITH DASH    12345678-9
ESCAPED      123456789

```

By default `COMPLETE` format is used, but you can change it.

```
RutField::make('rut')->formatComplete();
RutField::make('rut')->formatWithDash();
RutField::make('rut')->formatEscaped();
```

#### Validation

[](#validation)

As you can check on [this composer package](https://github.com/freshworkstudio/ChileanBundle), you can use `cl_rut` laravel validation. If you need a custom validation error, you can override your `resources/lang/es/validation.php`. I personally use this package:

```
RutField::make('rut')->rules('required|cl_rut');
```

#### Normalize on save

[](#normalize-on-save)

By default, the RUT value is always escaped (`ESCAPED` format) before saving to database. You can change this with `saveWithoutNormalization` saving the same text written by the user on the text field.

```
RutField::make('rut')->saveWithoutNormalization();
```

### Format the field as Chilean RUT/DNI.

[](#format-the-field-as-chilean-rutdni)

Also, you can validate the field using 'cl\_rut' laravel validation included on this package:

[![Screenshot](https://camo.githubusercontent.com/0ab4c3065341c7ad676dbe43bfb8a053ef5139e067495c9ff32a681a21e62a76/68747470733a2f2f6e6f76617061636b616765732e636f6d2f73746f726167652f73637265656e73686f74732f4f566742786d7447774f38797258655531474b5469766f4b687a6e69704a6548514f30396f6e6b372e676966)](https://camo.githubusercontent.com/0ab4c3065341c7ad676dbe43bfb8a053ef5139e067495c9ff32a681a21e62a76/68747470733a2f2f6e6f76617061636b616765732e636f6d2f73746f726167652f73637265656e73686f74732f4f566742786d7447774f38797258655531474b5469766f4b687a6e69704a6548514f30396f6e6b372e676966)

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~67 days

Total

4

Last Release

2628d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12437201?v=4)[freshwork](/maintainers/freshwork)[@freshwork](https://github.com/freshwork)

---

Top Contributors

[![gdespirito](https://avatars.githubusercontent.com/u/1103494?v=4)](https://github.com/gdespirito "gdespirito (8 commits)")

---

Tags

chilelaravelnovarutlaravelnova

### Embed Badge

![Health badge](/badges/freshwork-rut-field/health.svg)

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

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3423.6M8](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

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

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

Boost your Laravel Nova with the TinyMCE editor.

17178.1k1](/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.

11258.1k](/packages/datomatic-nova-detached-actions)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

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

PHPackages © 2026

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