Skip to content

Commit 7600f6c

Browse files
committed
refactor register component to use store for form handling
1 parent 20a2182 commit 7600f6c

File tree

4 files changed

+2
-68
lines changed

4 files changed

+2
-68
lines changed

app/Http/Controllers/Auth/RegisteredUserController.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

resources/js/pages/auth/Register.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<script setup lang="ts">
2-
import RegisteredUserController from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
32
import InputError from '@/components/InputError.vue';
43
import TextLink from '@/components/TextLink.vue';
54
import { Button } from '@/components/ui/button';
65
import { Input } from '@/components/ui/input';
76
import { Label } from '@/components/ui/label';
87
import AuthBase from '@/layouts/AuthLayout.vue';
98
import { login } from '@/routes';
9+
import { store } from '@/routes/register';
1010
import { Form, Head } from '@inertiajs/vue3';
1111
import { LoaderCircle } from 'lucide-vue-next';
1212
</script>
@@ -19,7 +19,7 @@ import { LoaderCircle } from 'lucide-vue-next';
1919
<Head title="Register" />
2020

2121
<Form
22-
v-bind="RegisteredUserController.store.form()"
22+
v-bind="store.form()"
2323
:reset-on-success="['password', 'password_confirmation']"
2424
v-slot="{ errors, processing }"
2525
class="flex flex-col gap-6"

routes/auth.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

routes/web.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@
1515
})->middleware(['auth', 'verified'])->name('dashboard');
1616

1717
require __DIR__.'/settings.php';
18-
require __DIR__.'/auth.php';

0 commit comments

Comments
 (0)