satoved/percentage

A Laravel Nova field.

Maintainers

Package info

github.com/satoved/percentage

Language:Vue

pkg:composer/satoved/percentage

Statistics

Installs: 96 405

Dependents: 0

Suggesters: 0

Stars: 7

Open Issues: 3

0.0.2 2018-10-14 20:01 UTC

This package is auto-updated.

Last update: 2026-03-15 14:29:17 UTC


README

A field to show percent values in Laravel Nova

Installation

composer require satoved/percentage

Usage

Percentage::make('Bonus')->precision(2)

Screenshots

Form view: Form View

Detail view: Form View

Pros

  • Percent sign on every view
  • HTML5 validation on the field
  • Saves empty input value as null

Cons

  • Works only with percentages stored as float in DB for now