diff --git a/lib/generators/inertia/install/templates/react/inertia.jsx b/lib/generators/inertia/install/templates/react/inertia.jsx index 75c6b17b..ef676f37 100644 --- a/lib/generators/inertia/install/templates/react/inertia.jsx +++ b/lib/generators/inertia/install/templates/react/inertia.jsx @@ -41,7 +41,7 @@ createInertiaApp({ defaults: { form: { - forceIndicesArrayFormatInFormData: true, + forceIndicesArrayFormatInFormData: false, }, future: { useDataInertiaHeadAttribute: true, diff --git a/lib/generators/inertia/install/templates/react/inertia.tsx b/lib/generators/inertia/install/templates/react/inertia.tsx index ec2e5b05..7bd3c6ae 100644 --- a/lib/generators/inertia/install/templates/react/inertia.tsx +++ b/lib/generators/inertia/install/templates/react/inertia.tsx @@ -41,7 +41,7 @@ void createInertiaApp({ defaults: { form: { - forceIndicesArrayFormatInFormData: true, + forceIndicesArrayFormatInFormData: false, }, future: { useDataInertiaHeadAttribute: true, diff --git a/lib/generators/inertia/install/templates/svelte/inertia.js b/lib/generators/inertia/install/templates/svelte/inertia.js index 4412cc22..21d882bb 100644 --- a/lib/generators/inertia/install/templates/svelte/inertia.js +++ b/lib/generators/inertia/install/templates/svelte/inertia.js @@ -39,7 +39,7 @@ createInertiaApp({ defaults: { form: { - forceIndicesArrayFormatInFormData: true, + forceIndicesArrayFormatInFormData: false, }, future: { useDataInertiaHeadAttribute: true, diff --git a/lib/generators/inertia/install/templates/svelte/inertia.ts b/lib/generators/inertia/install/templates/svelte/inertia.ts index 9d4b818b..11ed3de6 100644 --- a/lib/generators/inertia/install/templates/svelte/inertia.ts +++ b/lib/generators/inertia/install/templates/svelte/inertia.ts @@ -39,7 +39,7 @@ createInertiaApp({ defaults: { form: { - forceIndicesArrayFormatInFormData: true, + forceIndicesArrayFormatInFormData: false, }, future: { useDataInertiaHeadAttribute: true, diff --git a/lib/generators/inertia/install/templates/vue/inertia.js b/lib/generators/inertia/install/templates/vue/inertia.js index 93f9a475..ebbbc8d5 100644 --- a/lib/generators/inertia/install/templates/vue/inertia.js +++ b/lib/generators/inertia/install/templates/vue/inertia.js @@ -37,14 +37,14 @@ createInertiaApp({ }, defaults: { + form: { + forceIndicesArrayFormatInFormData: false, + }, future: { useDataInertiaHeadAttribute: true, useDialogForErrorModal: true, preserveEqualProps: true, }, - visitOptions: () => { - return { queryStringArrayFormat: "brackets" } - }, }, }).catch((error) => { // This ensures this entrypoint is only loaded on Inertia pages diff --git a/lib/generators/inertia/install/templates/vue/inertia.ts b/lib/generators/inertia/install/templates/vue/inertia.ts index 684af134..d4073351 100644 --- a/lib/generators/inertia/install/templates/vue/inertia.ts +++ b/lib/generators/inertia/install/templates/vue/inertia.ts @@ -37,14 +37,14 @@ createInertiaApp({ }, defaults: { + form: { + forceIndicesArrayFormatInFormData: false, + }, future: { useDataInertiaHeadAttribute: true, useDialogForErrorModal: true, preserveEqualProps: true, }, - visitOptions: () => { - return { queryStringArrayFormat: "brackets" } - }, }, }).catch((error) => { // This ensures this entrypoint is only loaded on Inertia pages