public static function getForm(): array {
return [
Section::make()
->schema([
TextInput::make('name')
->label("Product Name")
->required()
->unique(table: Product::class, ignoreRecord: true)
->minLength(4)
->maxLength(30)
->autofocus(),
]),
public static function getForm(): array {
return [
Section::make()
->schema([
TextInput::make('name')
->label("Product Name")
->required()
->unique(table: Product::class, ignoreRecord: true)
->minLength(4)
->maxLength(30)
->autofocus(),
]),