1
0
forked from poc/pds

Added unique sticker id logic for sticker structure page

This commit is contained in:
dhanabalan
2026-10-07 15:31:55 +05:30
parent 053d3d6132
commit 867c97288f

View File

@@ -39,10 +39,14 @@ class StickerStructureDetailResource extends Resource
->label('Sticker ID')
->reactive()
->required()
->unique(
table: 'sticker_structure_details',
column: 'sticker_id',
ignoreRecord: true
)
->afterStateUpdated(function ($state, callable $set) {
//\Log::info('Sticker ID typed:', ['sticker_id' => $state]);
$set('sticker_id_live', $state);
}),
$set('sticker_id_live', $state);
}),
Forms\Components\TextInput::make('sticker_width')
->label('Sticker Width')
->required(),