/**
  * Send a reset link to the given user.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function postEmail(Request $request)
 {
     $this->validate($request, ['email' => 'required|email']);
     // Set the credentials.
     $credentials = ["email" => Input::get("email")];
     $user = Password::getUser($credentials);
     // Email attributes.
     $view = $this->emails_config['reset_password'];
     $sender = $this->emails_config['from_address'];
     $subject = $this->emails_config['reset_password_subject'];
     // Send the reset link to the user.
     $response = $this->reset_password_instance->sendResetMail($view, $user, $sender, $subject);
     switch ($response) {
         case Password::RESET_LINK_SENT:
             return redirect('/admin')->with('status', trans($response));
         case Password::INVALID_USER:
             return redirect()->back()->withErrors(['email' => trans($response)]);
     }
 }