naming routes

This commit is contained in:
Ghostie 2024-08-19 17:33:32 -05:00
parent 66dad4384e
commit cdcfd485ef
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
</div>
<div class="md:w-4/12 bg-white p-6 rounded-lg shadow-xl">
<form action="/signup" method="POST">
<form action="{{ route('signup') }}" method="POST">
@csrf
<div class="mb-5">

View File

@ -18,7 +18,7 @@
<nav class="flex gap-2 items-center">
<a class="font-bold uppercase text-gray-600 text-sm" href="#">Login</a>
<a class="font-bold uppercase text-gray-600 text-sm" href="/signup">Sign Up</a>
<a class="font-bold uppercase text-gray-600 text-sm" href="{{ route('signup') }}">Sign Up</a>
</nav>
</div>
</header>

View File

@ -8,5 +8,5 @@ Route::get('/', function () {
return view('main');
});
Route::get("/signup", [SignupController::class, "index"]);
Route::get("/signup", [SignupController::class, "index"])->name("signup");
Route::post("/signup", [SignupController::class, "store"]);