Added minimum length validation for name and description fields in WorkGroupMasterResource form
This commit is contained in:
@@ -70,6 +70,7 @@ class WorkGroupMasterResource extends Resource
|
|||||||
Forms\Components\TextInput::make('name')
|
Forms\Components\TextInput::make('name')
|
||||||
->label('Name')
|
->label('Name')
|
||||||
->required()
|
->required()
|
||||||
|
->minLength(6)
|
||||||
->columnSpan(1)
|
->columnSpan(1)
|
||||||
->reactive()
|
->reactive()
|
||||||
->rule(function (callable $get) {
|
->rule(function (callable $get) {
|
||||||
@@ -91,6 +92,7 @@ class WorkGroupMasterResource extends Resource
|
|||||||
Forms\Components\TextInput::make('description')
|
Forms\Components\TextInput::make('description')
|
||||||
->label('Description')
|
->label('Description')
|
||||||
->required()
|
->required()
|
||||||
|
->minLength(5)
|
||||||
->reactive()
|
->reactive()
|
||||||
->columnSpan(['default' => 1, 'sm' => 3]),
|
->columnSpan(['default' => 1, 'sm' => 3]),
|
||||||
Forms\Components\Hidden::make('created_by')
|
Forms\Components\Hidden::make('created_by')
|
||||||
|
|||||||
Reference in New Issue
Block a user