lynndigital / select-or-custom
A Laravel Nova field.
dev-master
2021-01-15 14:32 UTC
Requires
- php: >=7.1.0
This package is auto-updated.
Last update: 2026-03-16 01:54:02 UTC
README
Laravel Nova custom field that allows you to have a select drop-down or custom text!
Install
You can install select-or-text using composer:
composer require lynndigital/select-or-custom
Then add the following code to your resources fields method:
\Lynndigital\SelectOrCustom\SelectOrCustom::make('Field Name')->options([]);
The field has an options method similar to that of Laravel Nova's Select field, it allows you to pass default options that may be selected.
Screenshots:
Select one of your provided options, or choose "Custom (Free Text)" to add a custom value.

The field when a provided option is selected:

The field when a custom value can be entered (a simple text field):


