From 34b2a051664d9698951dc3d2b63a95223d0cea41 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 9 Jul 2025 16:16:47 +0530 Subject: [PATCH] Added serial_number minimum length should be 9 digit --- app/Filament/Resources/PalletValidationResource.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Filament/Resources/PalletValidationResource.php b/app/Filament/Resources/PalletValidationResource.php index 998d805..bce70be 100644 --- a/app/Filament/Resources/PalletValidationResource.php +++ b/app/Filament/Resources/PalletValidationResource.php @@ -112,6 +112,7 @@ class PalletValidationResource extends Resource Forms\Components\TextInput::make('serial_number') ->label('Scan Serial No') ->reactive() + ->minLength(9) ->readOnly(fn (callable $get) => !$get('pallet_number') || $get('removeSno_number')) ->extraAttributes([ 'x-on:keydown.enter.prevent' => '$wire.processPalletSNo()', @@ -119,6 +120,7 @@ class PalletValidationResource extends Resource Forms\Components\TextInput::make('removeSno_number') ->label('Remove Serial No') ->reactive() + ->minLength(9) ->readOnly(fn (callable $get) => !$get('pallet_number') || $get('serial_number')) ->extraAttributes([ 'x-data' => '{ value: "" }',