From db574d1465c36f2975a0604209592675972e1564 Mon Sep 17 00:00:00 2001 From: "Harry (hjbdev)" Date: Sun, 30 Mar 2025 12:45:15 +0000 Subject: [PATCH] disable registration temporarily --- app/Http/Controllers/Auth/RegisteredUserController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index c7138ca..29b2418 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -30,6 +30,8 @@ class RegisteredUserController extends Controller */ public function store(Request $request): RedirectResponse { + abort(403, 'Registration is disabled.'); + $request->validate([ 'name' => 'required|string|max:255', 'email' => 'required|string|lowercase|email|max:255|unique:'.User::class,