Update database form

This commit is contained in:
Lance Pioch 2024-04-04 21:25:59 -04:00
parent 95570724e6
commit aac522232f

View File

@ -25,6 +25,8 @@ class DatabaseResource extends Resource
->schema([ ->schema([
Forms\Components\Select::make('server_id') Forms\Components\Select::make('server_id')
->relationship('server', 'name') ->relationship('server', 'name')
->searchable()
->preload()
->required(), ->required(),
Forms\Components\TextInput::make('database_host_id') Forms\Components\TextInput::make('database_host_id')
->required() ->required()
@ -32,18 +34,20 @@ class DatabaseResource extends Resource
Forms\Components\TextInput::make('database') Forms\Components\TextInput::make('database')
->required() ->required()
->maxLength(191), ->maxLength(191),
Forms\Components\TextInput::make('username')
->required()
->maxLength(191),
Forms\Components\TextInput::make('remote') Forms\Components\TextInput::make('remote')
->required() ->required()
->maxLength(191) ->maxLength(191)
->default('%'), ->default('%'),
Forms\Components\Textarea::make('password') Forms\Components\TextInput::make('username')
->required() ->required()
->columnSpanFull(), ->maxLength(191),
Forms\Components\TextInput::make('password')
->password()
->revealable()
->required(),
Forms\Components\TextInput::make('max_connections') Forms\Components\TextInput::make('max_connections')
->numeric() ->numeric()
->minValue(0)
->default(0), ->default(0),
]); ]);
} }