From 66dad4384ea5c2494200686ffabc3d6584ff340e Mon Sep 17 00:00:00 2001 From: Ghostie Date: Mon, 19 Aug 2024 17:27:18 -0500 Subject: [PATCH] added a new route to store new users --- app/Http/Controllers/SignupController.php | 5 +++++ resources/views/auth/signup.blade.php | 3 ++- routes/web.php | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/SignupController.php b/app/Http/Controllers/SignupController.php index efcc69b..f16ff85 100644 --- a/app/Http/Controllers/SignupController.php +++ b/app/Http/Controllers/SignupController.php @@ -10,4 +10,9 @@ class SignupController extends Controller { return view("auth.signup"); } + + public function store() + { + dd("Post..."); + } } diff --git a/resources/views/auth/signup.blade.php b/resources/views/auth/signup.blade.php index 8df96a3..8acf537 100644 --- a/resources/views/auth/signup.blade.php +++ b/resources/views/auth/signup.blade.php @@ -9,7 +9,8 @@
-
+ + @csrf
diff --git a/routes/web.php b/routes/web.php index a5f0a48..3e06f63 100644 --- a/routes/web.php +++ b/routes/web.php @@ -9,3 +9,4 @@ Route::get('/', function () { }); Route::get("/signup", [SignupController::class, "index"]); +Route::post("/signup", [SignupController::class, "store"]);