© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
Ninja++

Wizard Step type error

I have gone through the video on Dans youtube showing how to implement the wizard, however when i go to the create page it gives me this error.

App\Filament\Resources\ProjectsResource\Pages\CreateProjects::{closure}(): Argument #1 ($step) must be of type Filament\Forms\Components\Wizard\Step, Filament\Forms\Components\Wizard given
App\Filament\Resources\ProjectsResource\Pages\CreateProjects::{closure}(): Argument #1 ($step) must be of type Filament\Forms\Components\Wizard\Step, Filament\Forms\Components\Wizard given

I went back through the video and the wizard documentation page and i don't understand what i am doing wrong.
Solution
public function getSteps(): array
{
    return [
        Wizard\Step::make('Order')
            ->schema([
                TextInput::make('name')->required(),

            ]),
        Wizard\Step::make('Delivery')
            ->schema([
                TextInput::make('email')->required(),
            ]),
        Wizard\Step::make('Billing')
            ->schema([
                TextInput::make('phone')->required(),
            ]),
    ];
}
public function getSteps(): array
{
    return [
        Wizard\Step::make('Order')
            ->schema([
                TextInput::make('name')->required(),

            ]),
        Wizard\Step::make('Delivery')
            ->schema([
                TextInput::make('email')->required(),
            ]),
        Wizard\Step::make('Billing')
            ->schema([
                TextInput::make('phone')->required(),
            ]),
    ];
}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

wizard step label
FilamentFFilament / ❓┊help
8mo ago
Polling step wizard
FilamentFFilament / ❓┊help
16mo ago
Completed Wizard step
FilamentFFilament / ❓┊help
2y ago
Wizard step validation
FilamentFFilament / ❓┊help
2y ago