public function request(Request $request)
    {
        $user = User::whereEmail($request->email)->firstOrFail();
        $user->sendResetPasswordNotification($this->broker()->createToken($user), $request);

        return response()->json('Password request successful', 200);
    }
public function request(Request $request)
    {
        $user = User::whereEmail($request->email)->firstOrFail();
        $user->sendResetPasswordNotification($this->broker()->createToken($user), $request);

        return response()->json('Password request successful', 200);
    }
public function request ( Request $ request ) { $ user = User :: whereEmail ( $ request -> email ) -> firstOrFail ( ) ; $ user -> sendResetPasswordNotification ( $ this -> broker ( ) -> createToken ( $ user ) , $ request ) ; return response ( ) -> json ( 'Password request successful' , 200 ) ; }
Send an email to the registered email address with a reset password link

@param Request $request
@return \Illuminate\Http\RedirectResponse|\Illuminate\Http\JsonResponse
Send an email to the registered email address with a reset password link