From d8f56e7563fbb4b29112d2905b3b8097cdf368bf Mon Sep 17 00:00:00 2001
From: Claudio Dekker <1752195+claudiodekker@users.noreply.github.com>
Date: Wed, 6 Jan 2021 14:57:40 +0100
Subject: [PATCH] Remove jetstream-js form section
Inertia 2.x no longer ships with the `jetstream-js` helper out of the box, preferring Inertia's first-party form helper instea, which is already documented on inertiajs.com
---
2.x/stacks/inertia.md | 56 -------------------------------------------
1 file changed, 56 deletions(-)
diff --git a/2.x/stacks/inertia.md b/2.x/stacks/inertia.md
index 8ce7413..b761a45 100644
--- a/2.x/stacks/inertia.md
+++ b/2.x/stacks/inertia.md
@@ -74,62 +74,6 @@ public function boot()
To learn how to customize the Inertia pages rendered by Jetstream's authentication related routes such as login, registration, and password reset, check out the [authentication documentation](./../features/authentication.md#customizing-inertia-authentication-views).
:::
-## Form / Validation Helpers
-
-In order to make working with forms and validation errors more convenient, a [laravel-jetstream](https://github.com/laravel/jetstream-js) NPM package has been created. This package is automatically installed when using the Jetstream Inertia stack.
-
-This package adds a new `form` method to the `$inertia` object that may be accessed within your Vue components. The `form` method is used to create a new form object that will provide easy access to error messages, as well as conveniences such as resetting the form state on a successful form submission:
-
-```js
-data() {
- return {
- form: this.$inertia.form({
- name: this.name,
- email: this.email,
- }, {
- bag: 'updateProfileInformation',
- resetOnSuccess: true,
- }),
- }
-}
-```
-
-A form may be submitted using the `post`, `put`, or `delete` methods. All of the data specified during the form's creation will be automatically included in the request. In addition, [Inertia request options](https://inertiajs.com/requests) may also be specified:
-
-```js
-this.form.post('/user/profile-information', {
- preserveScroll: true
-})
-```
-
-Form error messages may be accessed using the `form.error` method. This method will return the first available error message for the given field:
-
-```html
-