Add required validation to load rate input in StickerMasterResource resource

This commit is contained in:
dhanabalan
2025-09-06 16:16:35 +05:30
parent ad72d38193
commit 65aafbeb65

View File

@@ -210,11 +210,11 @@ class StickerMasterResource extends Resource
Forms\Components\TextInput::make('load_rate') Forms\Components\TextInput::make('load_rate')
->label('Load Rate') ->label('Load Rate')
->default(0) ->default(0)
->required()
->disabled(function ($get) { ->disabled(function ($get) {
return $get('material_type'); return $get('material_type');
}) })
->integer() ->integer(),
->nullable(),
Forms\Components\Select::make('material_type') Forms\Components\Select::make('material_type')
->label('Material Type') ->label('Material Type')