added a new route to store new users

This commit is contained in:
Ghostie 2024-08-19 17:27:18 -05:00
parent 35ad1684da
commit 66dad4384e
3 changed files with 8 additions and 1 deletions

View File

@ -10,4 +10,9 @@ class SignupController extends Controller
{
return view("auth.signup");
}
public function store()
{
dd("Post...");
}
}

View File

@ -9,7 +9,8 @@
</div>
<div class="md:w-4/12 bg-white p-6 rounded-lg shadow-xl">
<form action="#">
<form action="/signup" method="POST">
@csrf
<div class="mb-5">
<label for="name" class="mb-2 block uppercase text-gray-500 font-bold">Name</label>

View File

@ -9,3 +9,4 @@ Route::get('/', function () {
});
Route::get("/signup", [SignupController::class, "index"]);
Route::post("/signup", [SignupController::class, "store"]);