public static function form(Form $form): Form
{
return $form
->schema([
Section::make()
->schema([
TextInput::make('name')
->required()
->maxLength(255)
->autofocus(),
TextInput::make('price')
->required()
->numeric()
->prefix('रू')
->minValue(1),
Textarea::make('description')
->minLength(2)
->maxLength(1024),
])->columns(1)->columnSpan(1),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Section::make()
->schema([
TextInput::make('name')
->required()
->maxLength(255)
->autofocus(),
TextInput::make('price')
->required()
->numeric()
->prefix('रू')
->minValue(1),
Textarea::make('description')
->minLength(2)
->maxLength(1024),
])->columns(1)->columnSpan(1),
]);
}