Skip to content

Commit 973172a

Browse files
set fully qualified URL for login,regiter and logout (#49)
1 parent f00615f commit 973172a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: stubs/livewire/resources/views/layouts/app.blade.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
@endif
9898

9999
<!-- Authentication -->
100-
<form method="POST" action="/logout">
100+
<form method="POST" action="{{ route('logout') }}">
101101
@csrf
102102

103-
<x-jet-dropdown-link href="/logout"
103+
<x-jet-dropdown-link href="{{ route('logout') }}"
104104
onclick="event.preventDefault();
105105
this.closest('form').submit();">
106106
Logout
@@ -156,10 +156,10 @@
156156
@endif
157157

158158
<!-- Authentication -->
159-
<form method="POST" action="/logout">
159+
<form method="POST" action="{{ route('logout') }}">
160160
@csrf
161161

162-
<x-jet-responsive-nav-link href="/logout"
162+
<x-jet-responsive-nav-link href="{{ route('logout') }}"
163163
onclick="event.preventDefault();
164164
this.closest('form').submit();">
165165
Logout

Diff for: stubs/resources/views/auth/#.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
@endif
1414

15-
<form method="POST" action="/login">
15+
<form method="POST" action="{{ route('login') }}">
1616
@csrf
1717

1818
<div>

Diff for: stubs/resources/views/auth/register.blade.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<x-jet-validation-errors class="mb-4" />
88

9-
<form method="POST" action="/register">
9+
<form method="POST" action="{{ route('register') }}">
1010
@csrf
1111

1212
<div>

0 commit comments

Comments
 (0)