schema([ Select::make('server_id') ->relationship('server', 'name') ->searchable() ->preload() ->required(), Select::make('database_host_id') ->relationship('host', 'name') ->searchable() ->selectablePlaceholder(false) ->preload() ->required(), TextInput::make('database') ->required() ->maxLength(255), TextInput::make('remote') ->required() ->maxLength(255) ->default('%'), TextInput::make('username') ->required() ->maxLength(255), TextInput::make('password') ->password() ->revealable() ->required(), TextInput::make('max_connections') ->numeric() ->minValue(0) ->default(0), ]); } }