naming routes
This commit is contained in:
parent
66dad4384e
commit
cdcfd485ef
@ -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">
|
||||
|
@ -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>
|
||||
|
@ -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"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user