|
|
@@ -26,8 +26,13 @@ class UserController extends Controller |
|
|
|
$validated = $request->validate([ |
|
|
|
'name' => 'required|max:30', |
|
|
|
'email' => 'required|email|unique:users|max:255', |
|
|
|
'password' => 'required|confirmed |
|
|
|
|min:8|regex:/[a-z]/|regex:/[A-Z]/|regex:/[0-9]/' |
|
|
|
'password' => ['required', 'confirmed', |
|
|
|
Password::min(8) |
|
|
|
->letters() |
|
|
|
->mixedCase() |
|
|
|
->numbers() |
|
|
|
->symbols() |
|
|
|
], |
|
|
|
]); |
|
|
|
|
|
|
|
$user = new User; |
|
|
|