diff --git a/app/Models/Database.php b/app/Models/Database.php index d2a7377f2..ae20a51c8 100644 --- a/app/Models/Database.php +++ b/app/Models/Database.php @@ -41,6 +41,7 @@ class Database extends Model protected $casts = [ 'server_id' => 'integer', 'database_host_id' => 'integer', + 'max_connections' => 'integer', ]; /** @@ -51,7 +52,7 @@ class Database extends Model 'database_host_id' => 'required|exists:database_hosts,id', 'database' => 'required|string|alpha_dash|between:3,100', 'username' => 'string|alpha_dash|between:3,100', - 'max_connections' => 'nullable', + 'max_connections' => 'nullable|integer', 'remote' => 'required|string|regex:/^[0-9%.]{1,15}$/', 'password' => 'string', ];