在Laravel中发送电子邮件时查看未找到错误

时间:2017-08-15 20:08:21

标签: laravel-5

我向用户发送了2封电子邮件,一封是他注册的,一封是他要求重置密码(忘记密码功能)。两个上述功能的代码类似。但是,只要用户注册新帐户,就会成功发送电子邮件,而我收到public function build() { return $this->subject('Reset your password') ->markdown('emails.password.reset') ->text('emails.password.reset_text'); } 错误。类似的代码,只是更改了文件名和一些后端逻辑。

这是发送邮件的代码(邮件类)

emails/password/reset.blade.php

这里是降价文件@component('mail::message') <strong>Hello {{ $token->user->getFirstNameOrUserName() }}!</strong> You are receiving this email because we received a password reset request for your account. If you did not request a password reset, no further action is required. @component('mail::button', [ 'url' => route('password.reset', ['token' => $token,]) . '?email=' . urlencode($token->user->email) ]) Reset Password @endcomponent Thanks,<br> {{ config('app.name') }} @endcomponent <hr> If you’re having trouble clicking the <strong>"Reset Password"</strong> button, copy and paste the URL below into your web browser:<br> <small>{{ route('password.reset', ['token' => $token,]) . '?email=' . urlencode($token->user->email) }}</small> @endcomponent

View [] not found. (View: /home/vagrant/Laravel/youtube/resources/views/emails/password/reset.blade.php)

我正在x=(0:0.01:1)'; aexp=zeros(100,numel(x)); hold on for ii=1:100; % aexp(ii,:)=exp((-x+ii/10)); %exponential aexp(ii,:)=exp(-(x-ii/100).^2); %~gaussian % aexp(ii,:)= x*ii; %linear increase plot3(x,aexp(ii,:),ii*ones(1,numel(x))); end % set(gca,'yscale','log'); % uncomment if you need logscale.

不知道为什么。我想,我需要第二双眼睛来找出错误。

1 个答案:

答案 0 :(得分:1)

我找到了答案,无论出于什么原因,我在降价模板中关闭(结束)降价组件@endcomponent两次。