🪄 Work in progress
This documentation is still a work in progress, so please don’t mind the mess. We also want to assure you that any corpses you see are used for completely legal and sanctioned necromantic purposes. Absolutely no funny business is taking place here.
To generate a wizard, you can use the
This would create a new wizard called
RegistrationWizard inside the
app/Wizards/RegistrationWizard directory of your application.
Generating steps for a new wizard
If you already know which steps your wizard will have, you can pass a comma-separated list of steps to the
make:wizard command using the
This would create three classes called
ConfirmStep inside the
app/Wizards/RegistrationWizard/Steps folder. It also automatically registers the steps in the wizard’s
To create a new step for an existing wizard, you can use the
make:wizard-step command. This command takes two parameters, the name of the step as well as the name as name of the wizard the step belongs to. The wizard name is used to determine the correct folder for creating the step.
This would create a new step called
ChooseSubscriptionStep inside the
app/Wizards/RegistrationWizard/Steps folder of your application.