Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Livewire Wizard Laravel Package

spatie/laravel-livewire-wizard

Lightweight Livewire components for building multi-step wizards in Laravel. Define a wizard with an ordered list of step components, each with its own screen and Livewire logic, and guide users through checkout-style flows with ease.

View on GitHub
Deep Wiki
Context7

title: Navigating steps weight: 2

There are various methods to navigate from one step to another. When switching steps we'll take care to preserve and restore state.

Navigating to the next step

You can navigate to the next step, using nextStep. You can call that method anywhere in your step component.

// somewhere in your step component

$this->nextStep();

You can also call it in your view.

<div wire:click="nextStep">
    Go to the next step
</div>

Navigating to the previous step

You can navigate to the previous step, using previousStep. You can call that method anywhere in your step component.

// somewhere in your step component

$this->previousStep();

You can also call it in your view.

<div wire:click="previousStep">
    Go to the previous step
</div>

Showing any step

To show any step, call showStep and pass it the component name of the step you want to show.

// somewhere in your step component

$this->showStep('confirm-order-step');

You can also call it in your view.

<div wire:click="showStep('confirm-order-step')">
    Go to the confirm order step
</div>

You can also check if a next or previous step exists directly from the step component.

$this->hasNextStep();
$this->hasPreviousStep();

Start at a specific step

If you want the wizard to display a specific step when it is rendered first, you can pass the step name to the show-step property.

<livewire:checkout-wizard show-step="delivery-address-step" />
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport