Added unique sticker id logic for sticker structure page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Pint / pint (pull_request) Successful in 3m39s
Laravel Larastan / larastan (pull_request) Failing after 5m52s

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(),