デフォルトだとログアウト処理では、’/'(ルート)に遷移する
### view
<form id="logout-form" action="{{ route('logout') }}" method="POST" name="logout"> @csrf <a href="javascript:document.logout.submit()">ログアウト</a> </form>
### LoginController.php
app/Http/Controllers/Auth/LoginController.php
->/hogeに遷移
use Illuminate\Support\Facades\Auth; public function logout(Request $request){ Auth::logout(); $this->guard()->logout(); $request->session()->invalidate(); return $this->loggedOut($request) ?: redirect('/hoge'); }