database/migrations/custom-fields
directory with a timestamp prefix and the name you specified.
CustomFieldType
enum provides various field types you can use. Here are some common types and their associated properties:
TEXT
: Basic text input
NUMBER
: Numeric input
SELECT
: Dropdown selection
MULTI_SELECT
: Multiple selection
DATE
: Date picker
TOGGLE
: Boolean toggle switch
TEXTAREA
: Multi-line text input
CustomFieldType
enum for a complete list of available field types.
new()
method to create new custom fields:
update()
method:
delete()
method:
restore()
method: