Skip to main content

Sample Application Type Fields

class RegisterNewUserFieldDefinition
{
public static function getFields(): array
{
return [
SectionDefinition::make('user_information')
->label('User Information')
->description('Details required for creating a new user')
->fields([
FieldDefinition::make('user_name')
->label('Name')
->builder(TextInputBuilder::class)
->isRequired(),
FieldDefinition::make('user_email')
->label('Email')
->builder(EmailInputBuilder::class)
->isRequired(),
]),
];
}
}