Mambi
Wizard no field displayed
@leandro_ferreira i'm using a fresh install of laravel and filament
here's my resssource page
class CustomerResource extends Resource
{
protected static ?string $model = Customer::class;
protected static ?string $navigationIcon = 'heroicon-o-collection';
public static function form(Form $form): Form
{
return $form
->schema([
Wizard::make([
Wizard\Step::make('step-1')
->schema([
TextInput::make('name')
->required()
]),
Wizard\Step::make('step-2')
->schema([
TextInput::make('email')
->required()
]),
Wizard\Step::make('step-3')
->schema([
TextInput::make('phone')
->required()
]),
]),
]);
}
public static function table(Table $table): Table
{
return $table
->columns([...])
}
public static function getPages(): array
{
return [
'index' => Pages\ListCustomers::route('/'),
'create' => Pages\CreateCustomer::route('/create'),
'edit' => Pages\EditCustomer::route('/{record}/edit'),
];
}
}
21 replies