Andreas Pattynama
Andreas Pattynama
FFilament
Created by Andreas Pattynama on 9/12/2024 in #❓┊help
Completed Wizard step
Here's my final schema. I used afterValidation in the end.
->schema([
Wizard::make([
Wizard\Step::make('Datei importieren')
->afterValidation(function () {
$this->import();
})
->schema([
FileUpload::make('file')
->disk('local')
->label('')
->directory('credit-imports')
->visibility('private')
->required(),
]),
Wizard\Step::make('Status')
->schema([
ViewField::make('status')->view(
'filament.pages.upload-credits-status'
)->viewData([
'importOutcome' => $this->importOutcome,
]),
])
])
])
->schema([
Wizard::make([
Wizard\Step::make('Datei importieren')
->afterValidation(function () {
$this->import();
})
->schema([
FileUpload::make('file')
->disk('local')
->label('')
->directory('credit-imports')
->visibility('private')
->required(),
]),
Wizard\Step::make('Status')
->schema([
ViewField::make('status')->view(
'filament.pages.upload-credits-status'
)->viewData([
'importOutcome' => $this->importOutcome,
]),
])
])
])
8 replies
FFilament
Created by Andreas Pattynama on 9/12/2024 in #❓┊help
Completed Wizard step
worked like a charm. Thank you!
8 replies
FFilament
Created by Andreas Pattynama on 9/12/2024 in #❓┊help
Completed Wizard step
@toeknee thank you for the tip, I'm doing it similarly now:
Wizard\Step::make('Importieren')
->afterValidation(function () {
$this->import();
})
->schema([]),
Wizard\Step::make('Importieren')
->afterValidation(function () {
$this->import();
})
->schema([]),
How would I load a custom view for a complete step?
8 replies