From e3303f7a605f3904a8e03b6f2fdac987df28a39f Mon Sep 17 00:00:00 2001 From: Charles Morgan Date: Thu, 23 Apr 2020 14:59:47 -0400 Subject: [PATCH] Change validation rule Change validation rule to --- app/Models/Database.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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', ];