In this episode, we dive into building out the actual product wizard! We start by recapping what we've covered so far, then get straight into the hands-on part—structuring our Livewire components to set up the wizard flow.
We organize everything under a products/create
directory and create a main CreateProduct
component that will extend the wizard base. From there, we define all the steps our form wizard needs: meta (for title and description), image (to handle the product image upload), and a publish step (where we review and save everything). Each step gets its own component, keeping things tidy and modular.
Next, we make sure each step extends the step component, and then move on to building out the first form: the meta step. We set up basic fields for the product's title and description. To get the UX right, we also create a reusable Blade component for a textarea (for those longer descriptions), tweaking the form layout for clarity.
You’ll see the beginnings of navigation structure, both for moving between steps and for styling purposes. We mention some improvements for later episodes—like handling back-navigation correctly and adding navigation controls above the wizard steps.
By the end, our multi-step product creation flow is ready to go, and you’ll have a solid pattern for setting up wizards in your own projects using Livewire. Stay tuned for the next episode where we tackle navigation and polish up the workflow!