lemonlabs/nova-selectable-key-value

Laravel Nova KeyValue field with definable selectable keys.

Maintainers

Package info

github.com/Het-Codeerbedrijf/nova-selectable-key-value

pkg:composer/lemonlabs/nova-selectable-key-value

Statistics

Installs: 1 229

Dependents: 0

Suggesters: 0

Stars: 0

v0.2.2 2025-12-29 08:59 UTC

This package is auto-updated.

Last update: 2026-03-01 00:48:23 UTC


README

Packagist Version Packagist Downloads

A Laravel Nova custom field for key-value pairs where the key is a dropdown (select) with options set via ->keyOptions().

Usage

use LemonLabs\SelectableKeyValue\SelectableKeyValue;

SelectableKeyValue::make('Settings')
    ->keyOptions([
        'option1' => 'Option 1',
        'option2' => 'Option 2',
    ])

Installation

  1. Install the package in your Nova project:
    composer require lemonlabs/nova-selectable-key-value
  2. Use the field in your Nova resource as shown above.