Skip to content

Laravel Nova KeyValue Field with input field for value

Notifications You must be signed in to change notification settings

Muetze42/nova-key-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Nova KeyInput Field

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.