PHPackages                             jorgv/nova-plus-button - 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. jorgv/nova-plus-button

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

jorgv/nova-plus-button
======================

A Laravel Nova field.

0.6.4(7y ago)66971MITVuePHP &gt;=7.1.0

Since Aug 27Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (11)Used By (0)

A simple plus button that runs an ajax request to increment a number field
==========================================================================

[](#a-simple-plus-button-that-runs-an-ajax-request-to-increment-a-number-field)

This package contains a Nova field to add increment button to the index view. This is my first Nova package if you have any suggestion or improvement please let me know, *I am certeain there can be better approaches*.

This field was made in order to add votes and other numeric values from the index view in a quick way

[![screenshot of the Plus Button field](https://camo.githubusercontent.com/b19ed73626d40bbfb35884df99b64101d7676ab9ace17ae0510ccdecf6a6abdb/68747470733a2f2f692e696d6775722e636f6d2f4f6443654e6b6d2e706e67)](https://camo.githubusercontent.com/b19ed73626d40bbfb35884df99b64101d7676ab9ace17ae0510ccdecf6a6abdb/68747470733a2f2f692e696d6775722e636f6d2f4f6443654e6b6d2e706e67)

Requirements
------------

[](#requirements)

This field requires an increment method within your controller and a route like this: /api/resour-name/increment/{id}.

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

[](#installation)

Install this package in your Laravel app via composer:

```
composer require jorgv/nova-plus-button
```

Usage
-----

[](#usage)

You can use this field in your forms as default number input and in your index view as a button. You can pass the `increaseValue` as parameter, by default increases by 1.

```
\\ use Jorgv\PlusButton\PlusButton;

public function fields()
{
    return [
            PlusButton::make('count')->increaseValue(5),
    ];
}
```

Suggested Method in controller

```
class YourController extends Controller
{

    public function increment(Request $request, $id)
    {
        if (request()->expectsJson()) {
            $object = Class::find($id);
            $object->count = $request->count;
            $object->save();
            return $object;
            }
    }
}
```

Suggested Route

```
Route::post('class/increase/{id}', 'YourController@increment');
```

Credits
-------

[](#credits)

- [Jorge Pereyra](https://github.com/jorgv)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

10

Last Release

2819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/742e9cee24728fc31bc205195a236b716431d63cef9bd35fcb53a054ebb0a711?d=identicon)[jorgv](/maintainers/jorgv)

---

Top Contributors

[![jorgv](https://avatars.githubusercontent.com/u/32174909?v=4)](https://github.com/jorgv "jorgv (15 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/jorgv-nova-plus-button/health.svg)

```
[![Health](https://phpackages.com/badges/jorgv-nova-plus-button/health.svg)](https://phpackages.com/packages/jorgv-nova-plus-button)
```

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