diff --git a/resources/js/Pages/Organizations/Create.vue b/resources/js/Pages/Organizations/Create.vue
index 589bcd6..67cff74 100644
--- a/resources/js/Pages/Organizations/Create.vue
+++ b/resources/js/Pages/Organizations/Create.vue
@@ -5,23 +5,23 @@
/ Create
@@ -42,14 +42,10 @@ export default {
SelectInput,
TextInput,
},
- props: {
- errors: Object,
- },
remember: 'form',
data() {
return {
- sending: false,
- form: {
+ form: this.$inertia.form({
name: null,
email: null,
phone: null,
@@ -58,16 +54,8 @@ export default {
region: null,
country: null,
postal_code: null,
- },
+ }),
}
},
- methods: {
- submit() {
- this.$inertia.post(this.route('organizations.store'), this.form, {
- onStart: () => this.sending = true,
- onFinish: () => this.sending = false,
- })
- },
- },
}