/** * Prepare an email for account reset requests * * @param User $user * @param string $reset_code */ protected function prepareResetRequestMailData($user, $reset_code) { $to = array('address' => $user->getAttribute('email'), 'name' => $user->getAttribute('first_name') . ' ' . $user->getAttribute('last_name')); $data = array('cms_name' => $this->cmsName, 'url' => $this->mockably->route('larapress.home.send.new.password.get', array($user->getId(), $reset_code))); $this->setTo($to); $this->setSubject($this->cmsName . ' | ' . $this->lang->get('larapress::email.Password Reset!')); $this->setData($data); $this->setView(array('text' => 'larapress::emails.reset-password')); }
/** * Shares the required data for the reCAPTCHA * * @return void */ public function shareDataToViews() { $this->view->share('captcha_validation_url', $this->mockably->route('larapress.api.captcha.validate.post')); }