added a new route to store new users
This commit is contained in:
parent
35ad1684da
commit
66dad4384e
@ -10,4 +10,9 @@ class SignupController extends Controller
|
||||
{
|
||||
return view("auth.signup");
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
dd("Post...");
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -9,3 +9,4 @@ Route::get('/', function () {
|
||||
});
|
||||
|
||||
Route::get("/signup", [SignupController::class, "index"]);
|
||||
Route::post("/signup", [SignupController::class, "store"]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user