Skip to content

Fill Laravel Nova field based on value from other field

Notifications You must be signed in to change notification settings

klepak/nova-depend-fill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

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'
    ])

About

Fill Laravel Nova field based on value from other field

Resources

Stars

Watchers

Forks

Packages

No packages published