This commit is contained in:
Ghostie 2024-08-20 19:07:08 -05:00
parent d1017a53ea
commit 379a4525e0
2 changed files with 2 additions and 2 deletions

View File

@ -23,6 +23,6 @@ class LoginController extends Controller
return back()->with("message", "Wrong credentials");
}
return redirect()->route("posts.index");
return redirect()->route("posts.index", auth()->user()->username);
}
}

View File

@ -32,7 +32,7 @@
Crear
</a>
<a class="font-bold text-gray-600 text-sm" href="#">
<a class="font-bold text-gray-600 text-sm" href="{{ route('posts.index', auth()->user()->username) }}">
Hello, <span class="font-normal">{{ auth()->user()->username }}</span>
</a>
<form action="{{ route('logout') }}" method="POST">