return CreateAction::make()
->form([
TextInput::make('email')
->label(__('form_fields.email'))
->email()
->maxLength(255)
->required(),
TextInput::make('password')
->password()
->label(__('form_fields.password'))
->maxLength(255)
->required(),
])
->action(function (CreateAction $action, array $data) {
try {
...
} catch (Exception $exception) {
...
}
});
return CreateAction::make()
->form([
TextInput::make('email')
->label(__('form_fields.email'))
->email()
->maxLength(255)
->required(),
TextInput::make('password')
->password()
->label(__('form_fields.password'))
->maxLength(255)
->required(),
])
->action(function (CreateAction $action, array $data) {
try {
...
} catch (Exception $exception) {
...
}
});