From ded8d397febe7943b4200aac646a0b970907a6c9 Mon Sep 17 00:00:00 2001 From: hussainali Date: Mon, 6 May 2024 04:06:14 +0500 Subject: [PATCH] added min:8 to the rule --- app/Http/Controllers/Auth/RegisteredUserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index 11ce4191..23961e38 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -37,7 +37,7 @@ public function store(Request $request) $request->validate([ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], - 'password' => ['required', 'confirmed', 'regex:/^[a-zA-Z].*/'], + 'password' => ['required', 'confirmed', 'min:8', 'regex:/^[a-zA-Z].*/'], ]); $user = User::create([