/nova-depend-fill

Fill Laravel Nova field based on value from other field

Primary LanguageVue

Installation

composer require chasie/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'
    ])