diff --git a/app/Http/Controllers/Auth/ForgotPasswordController.php b/app/Http/Controllers/Auth/ForgotPasswordController.php index eb454616d6..6c33c999cd 100644 --- a/app/Http/Controllers/Auth/ForgotPasswordController.php +++ b/app/Http/Controllers/Auth/ForgotPasswordController.php @@ -58,8 +58,11 @@ class ForgotPasswordController extends Controller * buffer overflow issues with attackers sending very large * payloads through. */ - $this->validate($request->validate([ - 'email' => 'required|email|max:255'])); + + $request->validate([ + 'email' => ['required', 'email', 'max:255'], + ]); + /**