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

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

ronnytorresmtz/text-inline
==========================

A Laravel Nova field.

1.0.12(5y ago)048MITVuePHP &gt;=7.1.0

Since Aug 2Pushed 5y ago1 watchersCompare

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

READMEChangelog (10)DependenciesVersions (14)Used By (0)

Laravel Nova Text Inline Field with One Click
=============================================

[](#laravel-nova-text-inline-field-with-one-click)

This package allow you to edit a text field in the index page with `one click`

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

[](#installation)

```
    composer require ronnytorresmtz/text-inline

```

Usage
-----

[](#usage)

### Make it editable

[](#make-it-editable)

```
use Ronnytorresmtz\TextInline\TextInline;

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

To edit the text field you need to click it on, and base on the `saveOn` event defined the text field value will be store in the database.

If you press the `Esc key` the field text will return to a not editable mode or if the text field lost the focus.

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'),
    ];
}
```

### Resoure Example

[](#resoure-example)

[![Image](textInline_image.PNG)](textInline_image.PNG)

Credits
-------

[](#credits)

The credit for this package belongs to `PDMFC` I just add the clickable functionality to enable the edit mode and add one listener for blur event to enable the readonly mode. Also I eliminate the refreshTable method.

This package was based on the package [pdmfc/nova-inline-text](https://github.com/pdmfc/nova-inline-text/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~13 days

Recently: every ~33 days

Total

13

Last Release

1955d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/415259f49fe1133f081e214ddcacf07add96edaeede05315f8e25423384aff6a?d=identicon)[Rolando Torres](/maintainers/Rolando%20Torres)

---

Top Contributors

[![ronnytorresmtz](https://avatars.githubusercontent.com/u/24813775?v=4)](https://github.com/ronnytorresmtz "ronnytorresmtz (25 commits)")

---

Tags

laravelnova

### Embed Badge

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

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

###  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)
