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

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

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:

Senior Software Development Engineer at Cotocus

Related Posts

How We Fixed a Stubborn Laravel MeiliSearch Bulk Indexing Failure (16,000+ Records)

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now If…

Read More

Laravel Search Without Docker, Queues, or Horizon

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Modern…

Read More

Laravel Scout with Typesense vs Meilisearch

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Modern…

Read More

SESSION_DRIVER=file vs SESSION_DRIVER=database in Laravel

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Which…

Read More

Laravel Logging: Complete Step-by-Step Guide to Enable, Debug, Verify, and Master Logs in Any Laravel Project

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Logging…

Read More

Complete Tutorial: Setting Up Laravel Telescope Correctly (Windows + XAMPP + Custom Domain)

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now This…

Read More
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments