ympact/laravel-livewire-wizard
wizard_progress table).public function rules()
{
return [
'step_1_field' => 'required|rule:StepOneRules',
'step_2_field' => 'required|rule:StepTwoRules',
];
}
<livewire:step-wizard step="1" :validation="['field' => 'required']">
<!-- Step content -->
</livewire:step-wizard>
Schema::create('wizard_progress', function (Blueprint $table) {
$table->id();
$table->string('user_id');
$table->json('step_data');
$table->timestamps();
});
wizard vs. Wizard).composer require livewire/livewire:^3.0 ympact/laravel-livewire-wizard.config/livewire.php if customizing defaults.php artisan vendor:publish --tag=livewire-wizard-views
<livewire:wizard>
<x-wizard-step title="Step 1">
<!-- Content -->
</x-wizard-step>
<x-wizard-step title="Step 2">
<!-- Content -->
</x-wizard-step>
</livewire:wizard>
wire:ignore for static content.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Livewire session timeout | Lost progress | Implement database-backed state. |
| Step validation conflicts | Form submission errors | Sync validation rules between wizard and Form Requests. |
| Custom UI breaks | Broken rendering | Test across browsers; use feature flags. |
| Livewire 3.x deprecation | Component breaks | Monitor Livewire releases; fork if needed. |
| High memory usage | Server crashes | Optimize session storage; use caching. |
How can I help you explore Laravel packages today?