Laravel-livewire-wizard is an amazing package by Spatie that offers lightweight Livewire components that allow you to easily build a wizard. These step components will be tied together using a WizardComponent.

The WizardComponent class extends Livewire's component class, so you need to register the CheckoutWizardComponent with Livewire.

Since steps are Livewire components, don't forget to register all steps to Livewire.

namespace App\Components; use App\Components\CartComponent; use App\Components\DeliveryAddressComponent; use App\Components\ConfirmOrderComponent; use Spatie\LivewireWizard\Components\WizardComponent; class CheckoutWizardComponent extends WizardComponent { public function steps() : array { return [ CartStepComponent::class, DeliveryAddressStepComponent::class, ConfirmOrderStepComponent::class, ]; }}
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners