afterValidation
->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, ]), ]) ]) ])
Wizard\Step::make('Importieren') ->afterValidation(function () { $this->import(); }) ->schema([]),