use IlluminateSupportFacadesValidator; use IlluminateValidationRulesPassword; $validator = Validator::make($request->all(), [ 'password' => ['required', 'confirmed', Password::min(8)], ]);