Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nova Appendable Select

Nova Appendable Select is a multi field that contains a select element and an input element. The select elements populates based on the Nova resource you are calling the component from and the tableName you pass as seen below.

AppendableDynamicDropdown::make('Brand')->rules('required')

In the example above we add this to the Nova Resource Router. So this multi field component will now populate all unique brand names from the routers table. To add a new brand name not already present in the routers table the input field will take new values and when submitting the form this new value will be present in the select field on subsequent form submits.

Who Uses Nova Appendable Select

  • Mero we built this :D

Usage

Laravel Nova Applications

Suitable when you want a dynamic select field that is populated based on a model in your database and you want to add to this

Show instructions
  1. Install the preset:

    $ composer require mero/nova-appendable-select
    
  2. Add the Nova Field Component to your Nova resource

    use Mero\AppendableDynamicDropdown\AppendableDynamicDropdown;
    
  3. You're all set!

About

A select and input field merged to allow a dynamic dropdown based on an existing model and the ability to append if necessary

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages