Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Письменов Дмитрий Иванович
/
yourroomads
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 72262482
authored
Apr 15, 2019
by
Jonathan Reinink
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change logout to POST endpoint
1 parent
f357317f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
resources/js/Shared/Layout.vue
routes/web.php
resources/js/Shared/Layout.vue
View file @
7226248
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<div
slot=
"dropdown"
class=
"mt-2 py-2 shadow-lg bg-white rounded text-sm"
>
<div
slot=
"dropdown"
class=
"mt-2 py-2 shadow-lg bg-white rounded text-sm"
>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo hover:text-white"
:href=
"route('users.edit', page.props.auth.user.id)"
>
My Profile
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo hover:text-white"
:href=
"route('users.edit', page.props.auth.user.id)"
>
My Profile
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo hover:text-white"
:href=
"route('users')"
>
Manage Users
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo hover:text-white"
:href=
"route('users')"
>
Manage Users
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo hover:text-white"
:href=
"route('logout')"
>
Logout
</inertia-link>
<inertia-link
class=
"block px-6 py-2 hover:bg-indigo hover:text-white"
:href=
"route('logout')"
method=
"post"
>
Logout
</inertia-link>
</div>
</div>
</dropdown>
</dropdown>
</div>
</div>
...
...
routes/web.php
View file @
7226248
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
// Auth
// Auth
Route
::
get
(
'login'
)
->
name
(
'login'
)
->
uses
(
'Auth\LoginController@showLoginForm'
);
Route
::
get
(
'login'
)
->
name
(
'login'
)
->
uses
(
'Auth\LoginController@showLoginForm'
);
Route
::
post
(
'login'
)
->
name
(
'login.attempt'
)
->
uses
(
'Auth\LoginController@login'
);
Route
::
post
(
'login'
)
->
name
(
'login.attempt'
)
->
uses
(
'Auth\LoginController@login'
);
Route
::
ge
t
(
'logout'
)
->
name
(
'logout'
)
->
uses
(
'Auth\LoginController@logout'
);
Route
::
pos
t
(
'logout'
)
->
name
(
'logout'
)
->
uses
(
'Auth\LoginController@logout'
);
// Dashboard
// Dashboard
Route
::
get
(
'/'
)
->
name
(
'dashboard'
)
->
uses
(
'DashboardController'
)
->
middleware
(
'auth'
);
Route
::
get
(
'/'
)
->
name
(
'dashboard'
)
->
uses
(
'DashboardController'
)
->
middleware
(
'auth'
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment