Refactor resource files: remove unused imports and clean up code across various resource and controller files for improved readability and maintainability. Update currency list formatting in helpers for consistency.
This commit is contained in:
@@ -28,12 +28,12 @@ class SolutionResource extends Resource
|
||||
->maxLength(255)
|
||||
->reactive()
|
||||
->afterStateUpdated(fn (string $operation, $state, Forms\Set $set) => $operation === 'create' ? $set('slug', Str::slug($state)) : null),
|
||||
|
||||
Forms\Components\TextInput::make('slug')
|
||||
|
||||
Forms\Components\TextInput::make('slug')
|
||||
->required()
|
||||
->maxLength(255),
|
||||
|
||||
Forms\Components\TextInput::make('title_description')
|
||||
|
||||
Forms\Components\TextInput::make('title_description')
|
||||
->maxLength(255)
|
||||
->required()
|
||||
->columnSpanFull(),
|
||||
@@ -51,7 +51,7 @@ class SolutionResource extends Resource
|
||||
Forms\Components\RichEditor::make('description')
|
||||
->required()
|
||||
->columnSpanFull(),
|
||||
|
||||
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user