satoved / percentage
A Laravel Nova field.
Installs: 74 825
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 2
Open Issues: 3
Language:Vue
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2024-11-15 11:35:16 UTC
README
A field to show percent values in Laravel Nova
Installation
composer require satoved/percentage
Usage
Percentage::make('Bonus')->precision(2)
Screenshots
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