klepak/nova-depend-fill

Fill Laravel Nova field based on value from other field.

Installs: 1 024

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 2

Forks: 13

Open Issues: 9

Language:Vue

v1.0 2019-08-06 12:11 UTC

This package is auto-updated.

Last update: 2024-12-14 03:20:49 UTC


README

composer require klepak/nova-depend-fill

Description

Fill Laravel Nova field based on value from other field.

example

Usage

DependFill::make('Text')
    ->field(
        Textarea::make('Text')
    )
    ->dependsOn(
        Select::make('Template')
            ->options([
                1 => 'Template 1',
                2 => 'Template 2',
            ])
    )
    ->values([
        1 => 'template 1 text',
        2 => 'template 2 text'
    ])