*/ public static function getValidations() { return [ 'allocation_limit' => 'required|integer|min:0', 'creation_enabled' => 'nullable|string', 'enable_upgrade' => 'nullable|string', ]; } /** * Summary of optionTypes * Only used for the settings page * @return array>> */ public static function getOptionInputData() { return [ 'category_icon' => 'fas fa-server', 'allocation_limit' => [ 'label' => 'Allocation Limit', 'type' => 'number', 'description' => 'The maximum amount of allocations to pull per node for automatic deployment, if more allocations are being used than this limit is set to, no new servers can be created.', ], 'creation_enabled' => [ 'label' => 'Creation Enabled', 'type' => 'boolean', 'description' => 'Enable the user server creation.', ], 'enable_upgrade' => [ 'label' => 'Server Upgrade Enabled', 'type' => 'boolean', 'description' => 'Enable the server upgrade feature.', ], ]; } }