Skip to content

Fill Laravel Nova field based on value from other field

Notifications You must be signed in to change notification settings

chasie/nova-depend-fill

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fill Laravel Nova field based on value from other field

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vue 61.5%
  • PHP 30.0%
  • JavaScript 8.2%
  • SCSS 0.3%