Allow Null = 0
Allow Value to be nullable, will autofill 0 if value is null or 0, to facilitate "unlimited" connections.
This commit is contained in:
parent
0ecfb40f5e
commit
82dd7dc8e3
8 changed files with 28 additions and 12 deletions
|
@ -51,7 +51,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' => 'string',
|
||||
'max_connections' => 'nullable',
|
||||
'remote' => 'required|string|regex:/^[0-9%.]{1,15}$/',
|
||||
'password' => 'string',
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue