Enhance SolutionResource form functionality: add debounce to slug generation for improved user experience during input, and adjust layout in show.blade.php by reducing column width for better content presentation.
This commit is contained in:
@@ -27,7 +27,8 @@ class SolutionResource extends Resource
|
||||
->required()
|
||||
->maxLength(255)
|
||||
->reactive()
|
||||
->afterStateUpdated(fn (string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null),
|
||||
->afterStateUpdated(fn (string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null)
|
||||
->debounce('1000ms'),
|
||||
|
||||
Forms\Components\TextInput::make('slug')
|
||||
->required()
|
||||
|
||||
Reference in New Issue
Block a user