App\Http\Controllers\Auth\HospitalForgotPasswordController::sendResetLinkResponse(): Argument #1 ($request) must be of type Illuminate\Http\Request, string given, 

Posted by

It seems that there is a problem with the way you are invoking the sendResetLinkResponse function. You’re sending the response string in your code, but the sendResetLinkResponse method wants an instance of Illuminate\Http\Request as its first argument.

When you are facing This type problem when you are facing then you need to understand the error. Once you understand then it is very easy to solve all the errors.

here is the code you have:

return $response == Password::RESET_LINK_SENT
                      ? $this->sendResetLinkResponse($response)
                      : $this->sendResetLinkFailedResponse($request, $response);

This is the main error which you are facing in this error. now you need to add some code here to solve this. You just need to add $request like the image is given.

return $response == Password::RESET_LINK_SENT
                        ? $this->sendResetLinkResponse($request, $response)
                       : $this->sendResetLinkFailedResponse($request, $response);

Now, you can refresh your project and it will work in a proper way as you want. like the image i have given below:

Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x