|string> */ public function rules(): array { return [ 'role' => ['required', Rule::enum(EnvironmentAttachmentRole::class)], 'env_prefix' => ['nullable', 'string', 'max:255', 'regex:/^[A-Z][A-Z0-9_]*$/'], 'is_primary' => ['boolean'], 'domain' => ['nullable', 'string', 'max:255'], 'path_prefix' => ['nullable', 'string', 'max:255'], 'tls_enabled' => ['boolean'], 'certificate_status' => ['nullable', 'string', 'max:255'], ]; } }