PHP code example of satoved / laravel-livewire-steps
1. Go to this page and download the library: Download satoved/laravel-livewire-steps library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
satoved / laravel-livewire-steps example snippets
use Satoved\LivewireSteps\Livewire\WizardComponent;
class EmailSubscriptionWizard extends WizardComponent
{
public NameStep $nameStep;
public EmailStep $emailStep;
public function render()
{
return <<<'BLADE'
<form wire:submit="nextStep">
{{ $this->renderStep() }}
<button>Next</button>
</form>
BLADE;
}
}
use Satoved\LivewireSteps\Livewire\Forms\StepForm;
class EmailStep extends StepForm
{
#[Validate(['emailStep.email">';
}
}