public function edit($token, PasswordResetRepository $resets)
    {
        if ($resets->exists($token)) {
            return view('authentication::password-reset.edit')->with('token', $token);
        } else {
            return redirect()->route('authentication::password-reset.create')->withErrors([
                'authentication::password-reset.expired' => trans('authentication::password-reset.expired'),
            ]);
        }
    }
public function edit($token, PasswordResetRepository $resets)
    {
        if ($resets->exists($token)) {
            return view('authentication::password-reset.edit')->with('token', $token);
        } else {
            return redirect()->route('authentication::password-reset.create')->withErrors([
                'authentication::password-reset.expired' => trans('authentication::password-reset.expired'),
            ]);
        }
    }
public function edit ( $ token , PasswordResetRepository $ resets ) { if ( $ resets -> exists ( $ token ) ) { return view ( 'authentication::password-reset.edit' ) -> with ( 'token' , $ token ) ; } else { return redirect ( ) -> route ( 'authentication::password-reset.create' ) -> withErrors ( [ 'authentication::password-reset.expired' => trans ( 'authentication::password-reset.expired' ) , ] ) ; } }
Shows the password reset form.

@param string $token
@param PasswordResetRepository $resets
@return View|RedirectResponse
Shows the password reset form .