Skip to content

Commit e3303f7

Browse files
Change validation rule
Change validation rule to
1 parent 82dd7dc commit e3303f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Models/Database.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Database extends Model
4141
protected $casts = [
4242
'server_id' => 'integer',
4343
'database_host_id' => 'integer',
44+
'max_connections' => 'integer',
4445
];
4546

4647
/**
@@ -51,7 +52,7 @@ class Database extends Model
5152
'database_host_id' => 'required|exists:database_hosts,id',
5253
'database' => 'required|string|alpha_dash|between:3,100',
5354
'username' => 'string|alpha_dash|between:3,100',
54-
'max_connections' => 'nullable',
55+
'max_connections' => 'nullable|integer',
5556
'remote' => 'required|string|regex:/^[0-9%.]{1,15}$/',
5657
'password' => 'string',
5758
];

0 commit comments

Comments
 (0)