diff --git a/resources/js/Pages/Auth/Login.vue b/resources/js/Pages/Auth/Login.vue index 26eeb1d..c4d5e80 100644 --- a/resources/js/Pages/Auth/Login.vue +++ b/resources/js/Pages/Auth/Login.vue @@ -2,7 +2,7 @@
-
+

Welcome Back!

@@ -39,9 +39,19 @@ export default { form: this.$inertia.form({ email: 'johndoe@example.com', password: 'secret', - remember: null, + remember: false, }), } }, + methods: { + submit() { + this.form + .transform(data => ({ + ...data, + remember: data.remember ? 'on' : '', + })) + .post(this.route('login.attempt')) + }, + }, }