1
0
forked from poc/pds

Updated plant code length

This commit is contained in:
dhanabalan
2026-04-30 15:20:57 +05:30
parent 1c2e8c7ddf
commit 67359a4c29

View File

@@ -58,7 +58,7 @@ class StickerMasterController extends Controller
'status_code' => 'ERROR',
'status_description' => 'Plant code must be between 4 and 7 digits only!',
], 400);
} elseif (! preg_match('/^[1-9]\d{6,}$/', $plantCode)) {
} elseif (! preg_match('/^[1-9]\d{4,}$/', $plantCode)) {
return response()->json([
'status_code' => 'ERROR',
'status_description' => 'Invalid plant code found!',