We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82dd7dc commit e3303f7Copy full SHA for e3303f7
app/Models/Database.php
@@ -41,6 +41,7 @@ class Database extends Model
41
protected $casts = [
42
'server_id' => 'integer',
43
'database_host_id' => 'integer',
44
+ 'max_connections' => 'integer',
45
];
46
47
/**
@@ -51,7 +52,7 @@ class Database extends Model
51
52
'database_host_id' => 'required|exists:database_hosts,id',
53
'database' => 'required|string|alpha_dash|between:3,100',
54
'username' => 'string|alpha_dash|between:3,100',
- 'max_connections' => 'nullable',
55
+ 'max_connections' => 'nullable|integer',
56
'remote' => 'required|string|regex:/^[0-9%.]{1,15}$/',
57
'password' => 'string',
58
0 commit comments