Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 699ffca

Browse files
committed
import full controller
1 parent b3401e3 commit 699ffca

File tree

9 files changed

+23
-18
lines changed

9 files changed

+23
-18
lines changed

resources/js/components/DeleteUser.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { destroy } from '@/actions/App/Http/Controllers/Settings/ProfileController';
2+
import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController';
33
import { Form } from '@inertiajs/vue3';
44
import { ref } from 'vue';
55
@@ -37,7 +37,7 @@ const passwordInput = ref<InstanceType<typeof Input> | null>(null);
3737
</DialogTrigger>
3838
<DialogContent>
3939
<Form
40-
v-bind="destroy.form()"
40+
v-bind="ProfileController.destroy.form()"
4141
reset-on-success
4242
@error="() => passwordInput?.$el?.focus()"
4343
:options="{

resources/js/pages/auth/ConfirmPassword.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { store } from '@/actions/App/Http/Controllers/Auth/ConfirmablePasswordController';
2+
import ConfirmablePasswordController from '@/actions/App/Http/Controllers/Auth/ConfirmablePasswordController';
33
import InputError from '@/components/InputError.vue';
44
import { Button } from '@/components/ui/button';
55
import { Input } from '@/components/ui/input';
@@ -13,7 +13,7 @@ import { LoaderCircle } from 'lucide-vue-next';
1313
<AuthLayout title="Confirm your password" description="This is a secure area of the application. Please confirm your password before continuing.">
1414
<Head title="Confirm password" />
1515

16-
<Form v-bind="store.form()" reset-on-success v-slot="{ errors, processing }">
16+
<Form v-bind="ConfirmablePasswordController.store.form()" reset-on-success v-slot="{ errors, processing }">
1717
<div class="space-y-6">
1818
<div class="grid gap-2">
1919
<Label htmlFor="password">Password</Label>

resources/js/pages/auth/ForgotPassword.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { store } from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
2+
import PasswordResetLinkController from '@/actions/App/Http/Controllers/Auth/PasswordResetLinkController';
33
import InputError from '@/components/InputError.vue';
44
import TextLink from '@/components/TextLink.vue';
55
import { Button } from '@/components/ui/button';
@@ -24,7 +24,7 @@ defineProps<{
2424
</div>
2525

2626
<div class="space-y-6">
27-
<Form v-bind="store.form()" v-slot="{ errors, processing }">
27+
<Form v-bind="PasswordResetLinkController.store.form()" v-slot="{ errors, processing }">
2828
<div class="grid gap-2">
2929
<Label for="email">Email address</Label>
3030
<Input id="email" type="email" name="email" autocomplete="off" autofocus placeholder="[email protected]" />

resources/js/pages/auth/Login.vue

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { store } from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
2+
import AuthenticatedSessionController from '@/actions/App/Http/Controllers/Auth/AuthenticatedSessionController';
33
import InputError from '@/components/InputError.vue';
44
import TextLink from '@/components/TextLink.vue';
55
import { Button } from '@/components/ui/button';
@@ -26,7 +26,12 @@ defineProps<{
2626
{{ status }}
2727
</div>
2828

29-
<Form v-bind="store.form()" :reset-on-success="['password']" v-slot="{ errors, processing }" class="flex flex-col gap-6">
29+
<Form
30+
v-bind="AuthenticatedSessionController.store.form()"
31+
:reset-on-success="['password']"
32+
v-slot="{ errors, processing }"
33+
class="flex flex-col gap-6"
34+
>
3035
<div class="grid gap-6">
3136
<div class="grid gap-2">
3237
<Label for="email">Email address</Label>

resources/js/pages/auth/Register.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { store } from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
2+
import RegisteredUserController from '@/actions/App/Http/Controllers/Auth/RegisteredUserController';
33
import InputError from '@/components/InputError.vue';
44
import TextLink from '@/components/TextLink.vue';
55
import { Button } from '@/components/ui/button';
@@ -16,7 +16,7 @@ import { LoaderCircle } from 'lucide-vue-next';
1616
<Head title="Register" />
1717

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

resources/js/pages/auth/ResetPassword.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { store } from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
2+
import NewPasswordController from '@/actions/App/Http/Controllers/Auth/NewPasswordController';
33
import InputError from '@/components/InputError.vue';
44
import { Button } from '@/components/ui/button';
55
import { Input } from '@/components/ui/input';
@@ -22,7 +22,7 @@ const inputEmail = ref(props.email);
2222
<Head title="Reset password" />
2323

2424
<Form
25-
v-bind="store.form()"
25+
v-bind="NewPasswordController.store.form()"
2626
:transform="(data) => ({ ...data, token, email })"
2727
:reset-on-success="['password', 'password_confirmation']"
2828
v-slot="{ errors, processing }"

resources/js/pages/auth/VerifyEmail.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { store } from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
2+
import EmailVerificationNotificationController from '@/actions/App/Http/Controllers/Auth/EmailVerificationNotificationController';
33
import TextLink from '@/components/TextLink.vue';
44
import { Button } from '@/components/ui/button';
55
import AuthLayout from '@/layouts/AuthLayout.vue';
@@ -20,7 +20,7 @@ defineProps<{
2020
A new verification link has been sent to the email address you provided during registration.
2121
</div>
2222

23-
<Form v-bind="store.form()" class="space-y-6 text-center" v-slot="{ processing }">
23+
<Form v-bind="EmailVerificationNotificationController.store.form()" class="space-y-6 text-center" v-slot="{ processing }">
2424
<Button :disabled="processing" variant="secondary">
2525
<LoaderCircle v-if="processing" class="h-4 w-4 animate-spin" />
2626
Resend verification email

resources/js/pages/settings/Password.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { update } from '@/actions/App/Http/Controllers/Settings/PasswordController';
2+
import PasswordController from '@/actions/App/Http/Controllers/Settings/PasswordController';
33
import InputError from '@/components/InputError.vue';
44
import AppLayout from '@/layouts/AppLayout.vue';
55
import SettingsLayout from '@/layouts/settings/Layout.vue';
@@ -33,7 +33,7 @@ const currentPasswordInput = ref<HTMLInputElement | null>(null);
3333
<HeadingSmall title="Update password" description="Ensure your account is using a long, random password to stay secure" />
3434

3535
<Form
36-
v-bind="update.form()"
36+
v-bind="PasswordController.update.form()"
3737
:options="{
3838
preserveScroll: true,
3939
}"

resources/js/pages/settings/Profile.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { update } from '@/actions/App/Http/Controllers/Settings/ProfileController';
2+
import ProfileController from '@/actions/App/Http/Controllers/Settings/ProfileController';
33
import { edit } from '@/routes/profile';
44
import { send } from '@/routes/verification';
55
import { Form, Head, Link, usePage } from '@inertiajs/vue3';
@@ -40,7 +40,7 @@ const user = page.props.auth.user;
4040
<div class="flex flex-col space-y-6">
4141
<HeadingSmall title="Profile information" description="Update your name and email address" />
4242

43-
<Form v-bind="update.form()" class="space-y-6" v-slot="{ errors, processing, recentlySuccessful }">
43+
<Form v-bind="ProfileController.update.form()" class="space-y-6" v-slot="{ errors, processing, recentlySuccessful }">
4444
<div class="grid gap-2">
4545
<Label for="name">Name</Label>
4646
<Input

0 commit comments

Comments
 (0)