laravel / forge-sdk

The official Laravel Forge PHP SDK.
https://forge.laravel.com
MIT License
528 stars 89 forks source link

Managing Create Database User #148

Closed kevariable closed 2 years ago

kevariable commented 2 years ago

Description:

i try to use this sdk and passing data like in documentation but i got validation errors

( new Forge(token was passing))->createDatabaseUser(123,  ['name' => 'name', 'password' => 'password, "databases" =>[123]])

errors

production.ERROR: The given data failed to pass validation. {"exception":"[object] (Laravel\\Forge\\Exceptions\\ValidationException(code: 0): The given data failed to pass validation. at /vendor/laravel/forge-sdk/src/MakesHttpRequests.php:104)

in docs like this

[⊖](https://forge.laravel.com/api-documentation#){
    "name": "forge",
    "password": "dolores",
    "databases": [⊖](https://forge.laravel.com/api-documentation#)[
        1
    ]
}

i really appreciate your help thanks

kevariable commented 2 years ago

name is greater than 16 character, my bad