diff --git a/resources/js/Shared/Layout.vue b/resources/js/Shared/Layout.vue index 0ef55d2..fbb26be 100644 --- a/resources/js/Shared/Layout.vue +++ b/resources/js/Shared/Layout.vue @@ -28,7 +28,7 @@
My Profile Manage Users - Logout + Logout
diff --git a/routes/web.php b/routes/web.php index bd3e80c..ad84401 100644 --- a/routes/web.php +++ b/routes/web.php @@ -14,7 +14,7 @@ // Auth Route::get('login')->name('login')->uses('Auth\LoginController@showLoginForm'); Route::post('login')->name('login.attempt')->uses('Auth\LoginController@login'); -Route::get('logout')->name('logout')->uses('Auth\LoginController@logout'); +Route::post('logout')->name('logout')->uses('Auth\LoginController@logout'); // Dashboard Route::get('/')->name('dashboard')->uses('DashboardController')->middleware('auth');