Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
353 views
in Technique[技术] by (71.8m points)

php - laravel从供应商目录重置电子邮件更改(laravel reset email change from vendor directory)

In the route below it will go to the auth controller and excute the function showResetForm, I want to add some variable inside this function to be shown when open the reset form, all working fine in localhost but the same files in the server still go to showResetForm function in vendor directory!!!!

(在下面的路由中,它将转到auth控制器并执行函数showResetForm,我想在此函数内添加一些变量,以在打开reset表单时显示,它们在localhost中都可以正常工作,但服务器中的相同文件仍然可以访问供应商目录中的showResetForm函数!)

   $this->get('password/reset/{token}', 'AuthResetPasswordController@showResetForm')->name('password.reset');

I dont want to use the function here vendor\laravel\framework\src\Illuminate\Foundation\Auth\ResetsPasswords.php

(我不想在此处使用该功能vendor \ laravel \ framework \ src \ Illuminate \ Foundation \ Auth \ ResetsPasswords.php)

I want the function showResetForm to be in auth/controller folder, in localhost working fine but in server not working!!!!

(我希望功能showResetForm在auth / controller文件夹中,在localhost中工作正常,但在服务器中不工作!)

still takes me here: https://imgur.com/VO5JDG5

(仍然带我到这里: https : //imgur.com/VO5JDG5)

 class ResetPasswordController extends Controller
 {

use ResetsPasswords;


 * @var string
 */
protected $redirectTo = '/';

/**
 * Create a new controller instance.
 *
 * @return void
 */

    public function showResetForm(Request $request, $token = null)
   {

   $cartContents=Cart::content();
    $cartstore=Helper::cartstore();
      $setting = SiteSetting::getSettings();
    return view('auth.passwords.reset',compact('cartstore','cartContents','setting'))->with(
        ['token' => $token, 'email' => $request->email]
    );
    }


public function __construct()
{
    $this->middleware('guest');
}
}
  ask by Farag Halain translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...