Column Span Form Builder

I want to display all the fields separately, like one at a line.
Need to use columnspan(2) on every fields and new fields should starts from new line not on the same line.
return $form
        
                ->schema([
                    TextInput::make('name')
                        ->required()
                        ->maxLength(255)
                        ->columnSpan(1)
                        ->autofocus(),
                    TextInput::make('Price')
                        ->required()
                        ->numeric()
                        ->minValue(1),
                    
                    Textarea::make('description')
                        ->minLength(2)
                        ->columnSpan(1)
                        ->maxLength(1024),

                    
                    
                
        ]);
Screenshot_2023-12-04_143310.png
Solution
Group::make()->columns(1)->schema([...]);
Was this page helpful?