Skip to content

Commit

Permalink
fix logout; wrong middleware closure
Browse files Browse the repository at this point in the history
  • Loading branch information
danivideda committed Dec 1, 2020
1 parent 46eb70f commit bcb90a7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
Route::get('/teacher/login', [LoginController::class, 'showTeacherLoginForm'])->name('login.teacher');
Route::post('/teacher/login', [LoginController::class, 'loginTeacher'])->name('login.teacher');

Route::post('/student/logout', [LogoutController::class, 'logoutStudent'])->name('logout.student');
Route::post('/teacher/logout', [LogoutController::class, 'logoutTeacher'])->name('logout.teacher');
});

Route::post('/student/logout', [LogoutController::class, 'logoutStudent'])->name('logout.student');
Route::post('/teacher/logout', [LogoutController::class, 'logoutTeacher'])->name('logout.teacher');

0 comments on commit bcb90a7

Please sign in to comment.