Wizard

How can I register a form before going to the next step?
4 Replies
LeandroFerreira
afterValidation on Step?
gustavo.dev
gustavo.devOP2y ago
yes
LeandroFerreira
there is a method... ->afterValidation(..)
gustavo.dev
gustavo.devOP2y ago
protected function getSteps(): array
{
return [
Step::make('Nombre del beneficio')
// ->description('Give the category a clear and unique name')
->schema(
BonusesDiscountsResource::getFormSchema('0')
),
Step::make('Agregar empleados')
->schema([

Card::make()
->columnSpan('full')
->schema(
// BonusesDiscountsResource::getFormSchema('1')
BonusesDiscountsResource::getFormSchemaThere()
),


]
),

];
}
protected function getSteps(): array
{
return [
Step::make('Nombre del beneficio')
// ->description('Give the category a clear and unique name')
->schema(
BonusesDiscountsResource::getFormSchema('0')
),
Step::make('Agregar empleados')
->schema([

Card::make()
->columnSpan('full')
->schema(
// BonusesDiscountsResource::getFormSchema('1')
BonusesDiscountsResource::getFormSchemaThere()
),


]
),

];
}
I have two forms in each step, so I want to save each form in each step, how can I do it? for only until the end let me save the form
Want results from more Discord servers?
Add your server