Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/laravel/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Laravel自定义密码重置_Php_Laravel_Laravel 5_Passwords_Reset - Fatal编程技术网

Php Laravel自定义密码重置

Php Laravel自定义密码重置,php,laravel,laravel-5,passwords,reset,Php,Laravel,Laravel 5,Passwords,Reset,我这样做: public function ForgotPassword(Request $request) { $template_data = [ 'template' => $this->template->ConstructArrayTemplate() ]; $rules = ['email' => 'required|exists:accounts|email'];

我这样做:

public function ForgotPassword(Request $request) {
        $template_data = [
            'template'  =>  $this->template->ConstructArrayTemplate()
        ];     

        $rules = ['email' => 'required|exists:accounts|email']; 

        $validator = Validator::make($request->all(), $rules);
        $errors = $this->sortErrors ( $validator, array('email') );

        if ( $errors ) {
            $template_data [ 'Errs' ] = $errors;
            $template_data [ 'template' ] [ 'page_name' ] = 'Sign up';

            return view('forgot_password', $template_data);
        } 

        $response = $this->passwords->sendResetLink($request->only('email'));

        switch ($response)
        {
            case PasswordBroker::RESET_LINK_SENT:
                return redirect('');
        }
    }
因为:

$response = $this->passwords->sendResetLink($request->only('email'));
我得到下一个错误:

FileViewFinder.php第137行:视图中的InvalidArgumentException 未找到[auth.emails.password]


要发送密码重置电子邮件,您需要提供用于生成电子邮件内容的视图

您应该将此模板放入参考资料/views/auth/emails/password.blade.php


在此模板中,您可以将重置令牌引用为$token,将用户对象引用为$user

要发送密码重置电子邮件,您需要提供用于生成电子邮件内容的视图

您应该将此模板放入参考资料/views/auth/emails/password.blade.php


在此模板中,您可以将重置令牌引用为$token,将用户对象引用为$user

检查您是否拥有此文件:
resources/views/auth/emails/password.blade.php
,以及我是否需要另一个路径?检查您是否拥有此文件:
resources/views/auth/emails/password.blade.php
和如果我想要另一个路径?如果我想要另一个路径?另一个到…?的路径?例如,我想要email.forgotpassword,如果我想要另一个路径?另一个到…?的路径?例如,我想要email.forgotpassword