norman-huth/nova-key-input

A Laravel Nova field.

Fund package maintenance!
huth.it/coffee

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 0

Language:Vue

0.0.1 2022-04-25 21:11 UTC

This package is auto-updated.

Last update: 2024-04-24 20:45:58 UTC


README

composer require norman-huth/nova-key-input

Based on KeyValue Field

KeyInput::make(__('Prices'), 'prices')
    ->rules('json')
    ->disableEditingKeys()
    ->disableAddingRows()
    ->disableDeletingRows()
    ->keyLabel(__('Country'))
    ->valueLabel(__('Price'))
    ->type('number')
    ->step(0.01)
    ->min(0)
    ->max(5000)
    ->required()

Stand With Ukraine Woman. Life. Freedom.