diff --git a/app/Http/Controllers/Auth/NewPasswordController.php b/app/Http/Controllers/Auth/NewPasswordController.php index 79ac3cd..9eebb26 100644 --- a/app/Http/Controllers/Auth/NewPasswordController.php +++ b/app/Http/Controllers/Auth/NewPasswordController.php @@ -9,7 +9,7 @@ use Illuminate\Support\Facades\Hash; use Illuminate\Support\Facades\Password; use Illuminate\Support\Str; -use Illuminate\Validation\Rules; +use Illuminate\Validation\Rules\Password as PasswordRule; use Illuminate\View\View; class NewPasswordController extends Controller @@ -32,7 +32,7 @@ public function store(Request $request): RedirectResponse $request->validate([ 'token' => ['required'], 'email' => ['required', 'email'], - 'password' => ['required', 'confirmed', Rules\Password::defaults()], + 'password' => ['required', 'confirmed', PasswordRule::defaults()], ]); // Here we will attempt to reset the user's password. If it is successful we diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index 88dbc08..590eabc 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -9,7 +9,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Hash; -use Illuminate\Validation\Rules; +use Illuminate\Validation\Rules\Password as PasswordRule; use Illuminate\View\View; class RegisteredUserController extends Controller @@ -32,7 +32,7 @@ public function store(Request $request): RedirectResponse $request->validate([ 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'lowercase', 'email', 'max:255', 'unique:' . User::class], - 'password' => ['required', 'confirmed', Rules\Password::defaults()], + 'password' => ['required', 'confirmed', PasswordRule::defaults()], ]); $user = User::create([