PHPackages                             pdmfc/nova-inline-text - 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. pdmfc/nova-inline-text

ActiveLibrary

pdmfc/nova-inline-text
======================

A Laravel Nova inline text field.

v1.2.1(5y ago)1149.5k↓50%8[1 PRs](https://github.com/pdmfc/nova-inline-text/pulls)MITVuePHP &gt;=7.1.0

Since Apr 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pdmfc/nova-inline-text)[ Packagist](https://packagist.org/packages/pdmfc/nova-inline-text)[ RSS](/packages/pdmfc-nova-inline-text/feed)WikiDiscussions master Synced 1mo ago

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

Nova Inline Text
================

[](#nova-inline-text)

[![Version](https://camo.githubusercontent.com/d733cc7e49e9ffb4b93fc89eb35b6366c665128607ebae7a5ae0503447452d61/68747470733a2f2f706f7365722e707567782e6f72672f70646d66632f6e6f76612d696e6c696e652d746578742f76657273696f6e)](https://packagist.org/packages/pdmfc/nova-inline-text)[![Total Downloads](https://camo.githubusercontent.com/3ade4768595d30d3a0cf2b41e0fbbe9550b30cd4d02f5c2242c9074c48395cb3/68747470733a2f2f706f7365722e707567782e6f72672f70646d66632f6e6f76612d696e6c696e652d746578742f646f776e6c6f616473)](https://packagist.org/packages/pdmfc/nova-inline-text)[![License](https://camo.githubusercontent.com/3d72d0f9af5079735c18fac631d30145c1a5ed4f5049dba8bbf4c18ff23e8b03/68747470733a2f2f706f7365722e707567782e6f72672f70646d66632f6e6f76612d696e6c696e652d746578742f6c6963656e7365)](https://packagist.org/packages/pdmfc/nova-inline-text)

This package lets you edit text fields directly on your resources pages.

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

[](#installation)

```
composer require pdmfc/nova-inline-text
```

Usage
-----

[](#usage)

```
use Pdmfc\NovaFields\InlineText;

//...

public function fields()
{
    return [
        InlineText::make('Name'),
    ];
}
```

### Making it editable

[](#making-it-editable)

By default, this field behaves like a regular text field. To be able to edit it on the index page, use the `inlineOnIndex()` method:

```
public function fields()
{
    return [
        InlineText::make('Name')
            ->inlineOnIndex(),
    ];
}
```

[![Basic usage](images/basic_example.png)](images/basic_example.png)

This method also accepts a closure with the current request if you want to make it editable dynamically:

```
public function fields()
{
    return [
        InlineText::make('Name')
            ->inlineOnIndex(function (NovaRequest $request) {
                return $request->user()->isAdmin();
            }),
    ];
}
```

### Updating field value

[](#updating-field-value)

The default trigger to save the value is by pressing the `Enter` key (`keyup.enter`). If you wish to use a different event trigger to update the value you can use the `saveOn()` method that accepts an argument corresponding to a javascript event:

```
public function fields()
{
    return [
        InlineText::make('Name')
            ->inlineOnIndex()
            ->saveOn('blur'),
    ];
}
```

### Key event modifiers

[](#key-event-modifiers)

You can also specify the key event modifier:

```
public function fields()
{
    return [
        InlineText::make('Name')
            ->inlineOnIndex()
            ->saveOn('keyup.shift'),
    ];
}
```

### Refreshing resource table

[](#refreshing-resource-table)

When saving the current field value, it will not refresh the table. If you need this functionality, use the `refreshOnSaving()` method:

```
public function fields()
{
    return [
        InlineText::make('Name')
            ->inlineOnIndex()
            ->refreshOnSaving(),
    ];
}
```

---

⚠️ Caveats
----------

[](#warning-caveats)

- When updating the field, make sure you add the `sometimes` validation rule to the rest of the fields that are required:

    ```
    Text::make('Email')
        ->rules('required', 'email')
        ->updateRules('sometimes') // Add these method call and validation rule to the fields that are required
    ```

---

How to contribute
-----------------

[](#how-to-contribute)

- clone the repo
- on `composer.json` of a laravel nova application add the following:

```
{
    //...

    "require" {
        "pdmfc/nova-inline-text: "*"
    },

    //...
    "repositories": [
        {
            "type": "path",
            "url": "../path_to_your_package_folder"
        }
    ],
}

```

- run `composer update pdmfc/nova-inline-text`

You're now ready to start contributing!

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

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

Total

5

Last Release

1967d ago

### Community

Maintainers

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

---

Top Contributors

[![skoyah](https://avatars.githubusercontent.com/u/36083448?v=4)](https://github.com/skoyah "skoyah (2 commits)")[![joaopaulolndev](https://avatars.githubusercontent.com/u/11706937?v=4)](https://github.com/joaopaulolndev "joaopaulolndev (1 commits)")

---

Tags

laravel-nova-fieldlaravelpackagenova

### Embed Badge

![Health badge](/badges/pdmfc-nova-inline-text/health.svg)

```
[![Health](https://phpackages.com/badges/pdmfc-nova-inline-text/health.svg)](https://phpackages.com/packages/pdmfc-nova-inline-text)
```

###  Alternatives

[pdmfc/nova-info-card

A Laravel Nova info card.

14103.0k2](/packages/pdmfc-nova-info-card)[demency/nova-gridder

A Laravel Nova Package for resource details grids.

1615.1k](/packages/demency-nova-gridder)[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)

PHPackages © 2026

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