Add validation rule

This commit is contained in:
Lance Pioch 2024-06-16 12:30:28 -04:00
parent a8699704de
commit 738707b251

View File

@ -167,6 +167,7 @@ class Server extends Model
'database_limit' => 'present|nullable|integer|min:0', 'database_limit' => 'present|nullable|integer|min:0',
'allocation_limit' => 'sometimes|nullable|integer|min:0', 'allocation_limit' => 'sometimes|nullable|integer|min:0',
'backup_limit' => 'present|nullable|integer|min:0', 'backup_limit' => 'present|nullable|integer|min:0',
'ports' => 'nullable|array',
]; ];
protected function casts(): array protected function casts(): array